]>
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 echo "This script is not used anymore."
12 cat >localized_js.php
<<HEADER
14 error_reporting(E_ERROR | E_WARNING | E_PARSE);
15 define('DISABLE_SESSIONS', true);
17 require "functions.php";
18 header("Content-Type: text/plain; charset=UTF-8");
20 function T_js_decl(\$s1) {
26 // if (\$T_s1 != \$s1) {
27 return "T_messages[\"\$s1\"] = \"".__(\$s1)."\";\n";
34 var T_messages = new Object();
37 if (T_messages[msg]) {
38 return T_messages[msg];
40 debug('[gettext] not found: ' + msg);
48 cat *js | .
/utils
/extract-i18n-js.pl |
sort |
uniq >> localized_js.php
50 cat >>localized_js.php
<<FOOTER