mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
add method jsTranslations()
This commit is contained in:
parent
192700fd26
commit
969fa2569b
|
@ -66,5 +66,13 @@ class SeedDMS_View_Common {
|
|||
|
||||
function show() {
|
||||
}
|
||||
|
||||
function jsTranslations($keys) {
|
||||
echo "var trans = {\n";
|
||||
foreach($keys as $key) {
|
||||
echo " '".$key."': '".str_replace("'", "\\\'", getMLText($key))."',\n";
|
||||
}
|
||||
echo "};\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user