Restructuring

This commit is contained in:
2017-09-11 17:20:53 +02:00
parent e923fa1746
commit acae3992f5
26 changed files with 48 additions and 27 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ foreach ($selected as $key) {
$out[$key] = $_messages[$key];
}
file_put_contents(__DIR__. '/jssrc/lang.js',
file_put_contents(__DIR__. '/js/lang.js',
"// Generated from PHP locale file\n" .
'let _tr = ' . json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) . ";\n\n" .
"function tr (key) { return _tr[key] || '?' + key + '?' }\n"