You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
410 B
PHTML
27 lines
410 B
PHTML
18 years ago
|
<?php
|
||
|
require "functions.php";
|
||
|
header("Content-Type: text/plain; charset=UTF-8");
|
||
|
|
||
|
function js_decl($s1, $s2) {
|
||
|
return "T_messages[\"$s1\"] = \"$s2\";\n";
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
var T_messages = new Object();
|
||
|
|
||
|
function __(msg) {
|
||
|
if (T_messages[msg]) {
|
||
|
return T_messages[msg];
|
||
|
} else {
|
||
|
return msg;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
<?php
|
||
|
|
||
|
print js_decl("display feeds", __("display feeds"));
|
||
|
print js_decl("display tags", __("display tags"));
|
||
|
|
||
|
?>
|
||
|
|