LSdefault / copyable helper: Fix translating messages

This commit is contained in:
Benjamin Renard 2023-03-21 10:31:52 +01:00
parent 140b000877
commit 80a50f98f1
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
2 changed files with 7 additions and 7 deletions

View file

@ -497,13 +497,6 @@ class LSsession {
) )
)) ))
return False; return False;
LStemplate :: addHelpInfo(
'LSdefault',
array(
'copy_to_clipboard' => _('Copy to clipboard'),
'copied' => _('Copied!'),
)
);
return True; return True;
} }
return False; return False;

View file

@ -416,6 +416,13 @@ class LStemplate extends LSlog_staticLoggerClass {
**/ **/
public static function assignCommonVars() { public static function assignCommonVars() {
// JS config // JS config
LStemplate :: addHelpInfo(
'LSdefault',
array(
'copy_to_clipboard' => _('Copy to clipboard'),
'copied' => _('Copied!'),
)
);
LStemplate :: assign('LSjsConfig', base64_encode(json_encode(self :: $JSconfigParams))); LStemplate :: assign('LSjsConfig', base64_encode(json_encode(self :: $JSconfigParams)));
// JS files // JS files