add script to extract preference translations from the schema; update translations

master
Andrew Dolgov 14 years ago
parent 30b6ee8c08
commit 2cd992574a

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,10 +1,4 @@
<? <?php # This file has been generated at: Mon Nov 29 13:07:29 MSK 2010
/*
* This is a dummy plug for gettext to know we have some translatable strings in the schema.
* This file is not otherwise used.
*/
# filters
__("Title"); __("Title");
__("Title or Content"); __("Title or Content");
@ -19,68 +13,46 @@
__("Assign tags"); __("Assign tags");
__("Assign label"); __("Assign label");
# prefs __('This option is useful when you are reading several planet-type aggregators with partially colliding userbase. When disabled, it forces same posts from different feeds to appear only once.');
__('Display expanded list of feed articles, instead of separate displays for headlines and article content');
__("General"); __('When "Mark as read" button is clicked in toolbar, automatically open next feed with unread articles.');
__('This option enables sending daily digest of new (and unread) headlines on your configured e-mail address');
__("Allow duplicate posts"); __('This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.');
__("This option is useful when you are reading several planet-type aggregators with partially colliding userbase. When disabled, it forces same posts from different feeds to appear only once."); __('Strip all but most common HTML tags when reading articles.');
__("Default interval between feed updates (in minutes)"); __('When auto-detecting tags in articles these tags will not be applied (comma-separated list).');
__("Enable e-mail digest"); __('When this option is enabled, headlines in Special feeds and Labels are grouped by feeds');
__("This option enables sending daily digest of new (and unread) headlines on your configured e-mail address"); __('Use feed-specified date to sort headlines instead of local import date.');
__("Purge old posts after this number of days (0 - disables)"); __('Customize CSS stylesheet to your liking');
__("Update post on checksum change"); __('Purge old posts after this number of days (0 - disables)');
__("Mark articles in e-mail digest as read"); __('Update post on checksum change');
__("Enable offline reading"); __('Default interval between feed updates');
__("Synchronize new articles for offline reading using Google Gears."); __('Amount of articles to display at once');
__('Allow duplicate posts');
__("Interface"); __('Enable feed categories');
__('Show content preview in headlines list');
__("Combined feed display"); __('Short date format');
__("Display expanded list of feed articles, instead of separate displays for headlines and article content"); __('Long date format');
__("Default article limit"); __('Use more accessible date/time format for headlines');
__("Default limit for articles to display, any custom number you like (0 - disables)."); __('Combined feed display');
__("Enable feed categories"); __('Hide feeds with no unread messages');
__("Enable search toolbar"); __('On catchup show next feed');
__("Hide feeds with no unread messages"); __('Sort feeds by unread articles count');
__("Mark articles as read automatically"); __('Set articles as unread on update');
__("This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list."); __('Reverse headline order (oldest first)');
__("On catchup show next feed"); __('Enable e-mail digest');
__("When \"Mark as read\" button is clicked in toolbar, automatically open next feed with unread articles."); __('Confirm marking feed as read');
__("Open article links in new browser window"); __('Mark articles as read automatically');
__("Reverse headline order (oldest first)"); __('Strip unsafe tags from articles');
__("Show content preview in headlines list"); __('Blacklisted tags');
__("Sort feeds by unread articles count"); __('Maximum age of fresh articles (in hours)');
__("User stylesheet URL"); __('Mark articles in e-mail digest as read');
__("Link to user stylesheet to override default style, disabled if empty."); __('Automatically expand articles in combined mode');
__("Maximum age of fresh articles (in hours)"); __('Purge unread articles');
__("Hide feedlist"); __('Show special feeds when hiding read feeds');
__("This option hides feedlist and allows it to be toggled on the fly, useful for small screens."); __('Group headlines in virtual feeds');
__("Group headlines in virtual feeds"); __('Do not show images in articles');
__("When this option is enabled, headlines in Special feeds and Labels are grouped by feeds"); __('Enable external API');
__('User timezone');
__("Advanced"); __('Sort headlines by feed date');
__('Customize stylesheet');
__("Blacklisted tags");
__("When auto-detecting tags in articles these tags will not be applied (comma-separated list).");
__("Confirm marking feed as read");
__("Enable feed icons");
__("Enable labels");
__("Experimental support for virtual feeds based on user crafted SQL queries. This feature is highly experimental and at this point not user friendly. Use with caution.");
__("Long date format");
__("Set articles as unread on update");
__("Short date format");
__("Show additional information in feedlist");
__("Strip unsafe tags from articles");
__("Strip all but most common HTML tags when reading articles.");
__("Use more accessible date/time format for headlines");
__("Automatically expand articles in combined mode");
__("Purge unread articles");
__("Show special feeds when hiding read feeds");
__("Prefer more accurate feedlist counters to UI speed");
__("Enable inline MP3 player");
__("Enable the Flash-based XSPF Player to play MP3-format podcast enclosures.");
__("Do not show images in articles");
__("Enable external API");
?> ?>

@ -0,0 +1,12 @@
__("Title");
__("Title or Content");
__("Link");
__("Content");
__("Article Date");
__("Filter article");
__("Mark as read");
__("Set starred");
__("Publish article");
__("Assign tags");
__("Assign label");

@ -0,0 +1,18 @@
#!/bin/sh
BASENAME=`basename $0`
TMPFILE="/tmp/$BASENAME-$$.tmp"
cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $8 }' > $TMPFILE
cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $6 }' >> $TMPFILE
echo "<?php # This file has been generated at: " `date` > localized_schema.php
echo >> localized_schema.php
cat utils/localized_schema.txt >> localized_schema.php
echo >> localized_schema.php
cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> localized_schema.php
echo "?>" >> localized_schema.php
rm $TMPFILE
Loading…
Cancel
Save