]>
Commit | Line | Data |
---|---|---|
709e7dc2 AD |
1 | <?php |
2 | require "functions.php"; | |
3 | header("Content-Type: text/plain; charset=UTF-8"); | |
4 | ||
5 | function js_decl($s1, $s2) { | |
6 | return "T_messages[\"$s1\"] = \"$s2\";\n"; | |
7 | } | |
8 | ?> | |
9 | ||
10 | var T_messages = new Object(); | |
11 | ||
12 | function __(msg) { | |
13 | if (T_messages[msg]) { | |
14 | return T_messages[msg]; | |
15 | } else { | |
16 | return msg; | |
17 | } | |
18 | } | |
19 | ||
20 | <?php | |
21 | ||
22 | print js_decl("display feeds", __("display feeds")); | |
23 | print js_decl("display tags", __("display tags")); | |
24 | ||
25 | ?> | |
26 |