mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
LSattr_html_select_list : Added translation of possiblies values labels. Updated consequently generate_lang_file.php and trad. FR files.
This commit is contained in:
parent
046d6f8004
commit
616197c43f
4 changed files with 26 additions and 6 deletions
|
@ -409,9 +409,9 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
|
|||
'html_type' => 'select_list',
|
||||
'html_options' => array (
|
||||
'possible_values' => array(
|
||||
'M.' => 'M.',
|
||||
'Mme' => 'Mme',
|
||||
'Mlle' => 'Mlle'
|
||||
'M.' => 'Mr',
|
||||
'Mme' => 'Mrs',
|
||||
'Mlle' => 'Ms'
|
||||
)
|
||||
),
|
||||
'required' => 1,
|
||||
|
|
|
@ -129,7 +129,7 @@ class LSattr_html_select_list extends LSattr_html{
|
|||
}
|
||||
else {
|
||||
$val_name=$this->attribute->ldapObject->getFData($val_name);
|
||||
$val=$this->attribute->ldapObject->getFData($val);
|
||||
$val=$this->attribute->ldapObject->getFData(__($val));
|
||||
$retInfos[$val_name]=$val;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,6 +83,15 @@ $GLOBALS['LSlang'] = array (
|
|||
"Members" =>
|
||||
"Membres",
|
||||
|
||||
"Mr" =>
|
||||
"M.",
|
||||
|
||||
"Mrs" =>
|
||||
"Mms",
|
||||
|
||||
"Ms" =>
|
||||
"Mlle",
|
||||
|
||||
"Name" =>
|
||||
"Nom",
|
||||
|
||||
|
@ -142,7 +151,8 @@ $GLOBALS['LSlang'] = array (
|
|||
|
||||
"To proceed password recovery procedure, please follow that link:
|
||||
%{url}" =>
|
||||
"Pour poursuivre la procédure de récupération de mot de passe, merci de suivre ce lien :\n%{url}",
|
||||
"Pour poursuivre la procédure de récupération de mot de passe, merci de suivre ce lien :
|
||||
%{url}",
|
||||
|
||||
"Users" =>
|
||||
"Utilisateurs",
|
||||
|
@ -152,7 +162,8 @@ $GLOBALS['LSlang'] = array (
|
|||
|
||||
"Your password has been changed.
|
||||
New password : %{mdp}" =>
|
||||
"Votre mot de passe a été modifié.\nNouveau mot de passe : %{mdp}",
|
||||
"Votre mot de passe a été modifié.
|
||||
Nouveau mot de passe : %{mdp}",
|
||||
|
||||
"Your password must contain from 8 to 10 characters." =>
|
||||
"Votre mot de passe doit contenir entre 8 et 10 caractères.",
|
||||
|
|
|
@ -81,6 +81,15 @@ if (loadDir('../'.LS_OBJECTS_DIR)) {
|
|||
add($attr['html_options']['mail']['subject']);
|
||||
add($attr['html_options']['mail']['msg']);
|
||||
|
||||
// LSattr_html_select_list
|
||||
if ($attr['html_type']=='select_list' && is_array($attr['html_options']['possible_values'])) {
|
||||
foreach($attr['html_options']['possible_values'] as $pkey => $pname) {
|
||||
if ($pkey != 'OTHER_OBJECT') {
|
||||
add($pname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check data
|
||||
if (is_array($attr['check_data'])) {
|
||||
foreach($attr['check_data'] as $check) {
|
||||
|
|
Loading…
Reference in a new issue