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,86 +1,58 @@
<? <?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. __("Title");
* This file is not otherwise used. __("Title or Content");
*/ __("Link");
__("Content");
# filters __("Article Date");
__("Title"); __("Filter article");
__("Title or Content"); __("Mark as read");
__("Link"); __("Set starred");
__("Content"); __("Publish article");
__("Article Date"); __("Assign tags");
__("Assign label");
__("Filter article");
__("Mark as read"); __('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.');
__("Set starred"); __('Display expanded list of feed articles, instead of separate displays for headlines and article content');
__("Publish article"); __('When "Mark as read" button is clicked in toolbar, automatically open next feed with unread articles.');
__("Assign tags"); __('This option enables sending daily digest of new (and unread) headlines on your configured e-mail address');
__("Assign label"); __('This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.');
__('Strip all but most common HTML tags when reading articles.');
# prefs __('When auto-detecting tags in articles these tags will not be applied (comma-separated list).');
__('When this option is enabled, headlines in Special feeds and Labels are grouped by feeds');
__("General"); __('Use feed-specified date to sort headlines instead of local import date.');
__('Customize CSS stylesheet to your liking');
__("Allow duplicate posts"); __('Purge old posts after this number of days (0 - disables)');
__("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."); __('Update post on checksum change');
__("Default interval between feed updates (in minutes)"); __('Default interval between feed updates');
__("Enable e-mail digest"); __('Amount of articles to display at once');
__("This option enables sending daily digest of new (and unread) headlines on your configured e-mail address"); __('Allow duplicate posts');
__("Purge old posts after this number of days (0 - disables)"); __('Enable feed categories');
__("Update post on checksum change"); __('Show content preview in headlines list');
__("Mark articles in e-mail digest as read"); __('Short date format');
__("Enable offline reading"); __('Long date format');
__("Synchronize new articles for offline reading using Google Gears."); __('Use more accessible date/time format for headlines');
__('Combined feed display');
__("Interface"); __('Hide feeds with no unread messages');
__('On catchup show next feed');
__("Combined feed display"); __('Sort feeds by unread articles count');
__("Display expanded list of feed articles, instead of separate displays for headlines and article content"); __('Set articles as unread on update');
__("Default article limit"); __('Reverse headline order (oldest first)');
__("Default limit for articles to display, any custom number you like (0 - disables)."); __('Enable e-mail digest');
__("Enable feed categories"); __('Confirm marking feed as read');
__("Enable search toolbar"); __('Mark articles as read automatically');
__("Hide feeds with no unread messages"); __('Strip unsafe tags from articles');
__("Mark articles as read automatically"); __('Blacklisted tags');
__("This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list."); __('Maximum age of fresh articles (in hours)');
__("On catchup show next feed"); __('Mark articles in e-mail digest as read');
__("When \"Mark as read\" button is clicked in toolbar, automatically open next feed with unread articles."); __('Automatically expand articles in combined mode');
__("Open article links in new browser window"); __('Purge unread articles');
__("Reverse headline order (oldest first)"); __('Show special feeds when hiding read feeds');
__("Show content preview in headlines list"); __('Group headlines in virtual feeds');
__("Sort feeds by unread articles count"); __('Do not show images in articles');
__("User stylesheet URL"); __('Enable external API');
__("Link to user stylesheet to override default style, disabled if empty."); __('User timezone');
__("Maximum age of fresh articles (in hours)"); __('Sort headlines by feed date');
__("Hide feedlist"); __('Customize stylesheet');
__("This option hides feedlist and allows it to be toggled on the fly, useful for small screens.");
__("Group headlines in virtual feeds");
__("When this option is enabled, headlines in Special feeds and Labels are grouped by feeds");
__("Advanced");
__("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