]>
git.wh0rd.org - tt-rss.git/blob - utils/update-js-translations.sh
3 if [ ! -f localized_js.php
]; then
4 echo "please run this script from tt-rss directory"
8 cat >localized_js.php
<<HEADER
10 error_reporting(E_ERROR | E_WARNING | E_PARSE);
11 define('DISABLE_SESSIONS', true);
13 require "functions.php";
14 header("Content-Type: text/plain; charset=UTF-8");
16 function T_js_decl(\$s1) {
22 // if (\$T_s1 != \$s1) {
23 return "T_messages[\"\$s1\"] = \"".__(\$s1)."\";\n";
30 var T_messages = new Object();
33 if (T_messages[msg]) {
34 return T_messages[msg];
36 debug('[gettext] not found: ' + msg);
44 cat *js | .
/utils
/extract-i18n-js.pl |
sort |
uniq >> localized_js.php
46 cat >>localized_js.php
<<FOOTER