mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
Allow translation of LSioFormat labels
This commit is contained in:
parent
fa60f54b15
commit
2d108c8b08
3 changed files with 12 additions and 1 deletions
|
@ -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.layout.*.label");
|
||||||
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSform.dataEntryForm.*.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
|
// LSsearch
|
||||||
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.predefinedFilters.*");
|
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.predefinedFilters.*");
|
||||||
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.extraDisplayedColumns.*.label");
|
_cli_add_str_to_translate_from_LSconfig("LSobjects.$obj.LSsearch.extraDisplayedColumns.*.label");
|
||||||
|
|
|
@ -2032,7 +2032,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
$ioFormats = $this -> getConfig('ioFormat');
|
$ioFormats = $this -> getConfig('ioFormat');
|
||||||
if (is_array($ioFormats)) {
|
if (is_array($ioFormats)) {
|
||||||
foreach($ioFormats as $name => $conf) {
|
foreach($ioFormats as $name => $conf) {
|
||||||
$ret[$name] = _((isset($conf['label'])?$conf['label']:$name));
|
$ret[$name] = __((isset($conf['label'])?$conf['label']:$name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
|
@ -109,6 +109,10 @@ $GLOBALS['LSlang'] = array (
|
||||||
"Company" =>
|
"Company" =>
|
||||||
"Société",
|
"Société",
|
||||||
|
|
||||||
|
# LSobjects.LSpeople.ioFormat.myfullcsv.label
|
||||||
|
"Complete CSV" =>
|
||||||
|
"CSV Complet",
|
||||||
|
|
||||||
# LSobjects.LSpeople.attrs.pwdHistory.html_options.components.time.label
|
# LSobjects.LSpeople.attrs.pwdHistory.html_options.components.time.label
|
||||||
# LSobjects.LSsysaccount.attrs.pwdHistory.html_options.components.time.label
|
# LSobjects.LSsysaccount.attrs.pwdHistory.html_options.components.time.label
|
||||||
"Date added to history" =>
|
"Date added to history" =>
|
||||||
|
@ -693,6 +697,10 @@ $GLOBALS['LSlang'] = array (
|
||||||
"Simple" =>
|
"Simple" =>
|
||||||
"Simple",
|
"Simple",
|
||||||
|
|
||||||
|
# LSobjects.LSpeople.ioFormat.mycsv.label
|
||||||
|
"Simple CSV" =>
|
||||||
|
"CSV Simple",
|
||||||
|
|
||||||
# LSobjects.LSpeople.attrs.sambaKickoffTime.help_info
|
# LSobjects.LSpeople.attrs.sambaKickoffTime.help_info
|
||||||
"Specifies the time when the user will be locked down and cannot login any longer." =>
|
"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.",
|
"Détermine la date à partir de laquelle l'utilisateur sera bloqué et ne pourra plus se connecter.",
|
||||||
|
|
Loading…
Reference in a new issue