Allow translation of LSioFormat labels

This commit is contained in:
Benjamin Renard 2023-05-17 16:26:35 +02:00
parent fa60f54b15
commit 2d108c8b08
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
3 changed files with 12 additions and 1 deletions

View file

@ -929,6 +929,9 @@ function cli_generate_lang_file($command_args) {
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSform.layout.*.label");
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSform.dataEntryForm.*.label");
// LSioFormat
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.ioFormat.*.label");
// LSsearch
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.predefinedFilters.*");
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.extraDisplayedColumns.*.label");

View file

@ -2032,7 +2032,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
$ioFormats = $this -> getConfig('ioFormat');
if (is_array($ioFormats)) {
foreach($ioFormats as $name => $conf) {
$ret[$name] = _((isset($conf['label'])?$conf['label']:$name));
$ret[$name] = __((isset($conf['label'])?$conf['label']:$name));
}
}
return $ret;

View file

@ -109,6 +109,10 @@ $GLOBALS['LSlang'] = array (
"Company" =>
"Société",
# LSobjects.LSpeople.ioFormat.myfullcsv.label
"Complete CSV" =>
"CSV Complet",
# LSobjects.LSpeople.attrs.pwdHistory.html_options.components.time.label
# LSobjects.LSsysaccount.attrs.pwdHistory.html_options.components.time.label
"Date added to history" =>
@ -693,6 +697,10 @@ $GLOBALS['LSlang'] = array (
"Simple" =>
"Simple",
# LSobjects.LSpeople.ioFormat.mycsv.label
"Simple CSV" =>
"CSV Simple",
# LSobjects.LSpeople.attrs.sambaKickoffTime.help_info
"Specifies the time when the user will be locked down and cannot login any longer." =>
"Détermine la date à partir de laquelle l'utilisateur sera bloqué et ne pourra plus se connecter.",