diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/localized_schema.txt | 2 | ||||
-rw-r--r-- | utils/update-js-translations.sh | 52 | ||||
-rwxr-xr-x | utils/update-translations.sh | 2 |
3 files changed, 3 insertions, 53 deletions
diff --git a/utils/localized_schema.txt b/utils/localized_schema.txt index f140d0bc2..43280298a 100644 --- a/utils/localized_schema.txt +++ b/utils/localized_schema.txt @@ -4,7 +4,7 @@ __("Link"); __("Content"); __("Article Date"); -__("Filter article"); +__("Delete article"); __("Mark as read"); __("Set starred"); __("Publish article"); diff --git a/utils/update-js-translations.sh b/utils/update-js-translations.sh deleted file mode 100644 index bdac394cb..000000000 --- a/utils/update-js-translations.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh - -if [ ! -f localized_js.php ]; then - echo "please run this script from tt-rss directory" - exit 1 -fi - -echo "This script is not used anymore." - -exit 0 # disabled - -cat >localized_js.php <<HEADER -<?php -error_reporting(E_ERROR | E_WARNING | E_PARSE); -define('DISABLE_SESSIONS', true); - -require "functions.php"; -header("Content-Type: text/plain; charset=UTF-8"); - -function T_js_decl(\$s1) { - - if (!\$s1) return; - -// \$T_s1 = __(\$s1); - -// if (\$T_s1 != \$s1) { - return "T_messages[\"\$s1\"] = \"".__(\$s1)."\";\n"; -// } else { -// return ""; -// } -} -?> - -var T_messages = new Object(); - -function __(msg) { - if (T_messages[msg]) { - return T_messages[msg]; - } else { - debug('[gettext] not found: ' + msg); - return msg; - } -} - -<?php -HEADER - -cat *js | ./utils/extract-i18n-js.pl | sort | uniq >> localized_js.php - -cat >>localized_js.php <<FOOTER -?> -FOOTER diff --git a/utils/update-translations.sh b/utils/update-translations.sh index 6968b20b6..7c8841ca5 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -1,6 +1,8 @@ #!/bin/sh TEMPLATE=messages.pot +./utils/update-schema-translations.sh + xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php modules/*.php help/*.php mobile/*.php xgettext --from-code utf-8 -k__ -L Java -j -o $TEMPLATE *.js |