mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Premiere salve de traduction FR->EN
(Note) Les passages déja traduits sont ignorés
This commit is contained in:
parent
5980693fc1
commit
52ede7e6f7
14 changed files with 125 additions and 125 deletions
|
@ -26,7 +26,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array (
|
||||||
'lscompany'
|
'lscompany'
|
||||||
),
|
),
|
||||||
'rdn' => 'ou',
|
'rdn' => 'ou',
|
||||||
'orderby' => 'displayName', // Valeurs possibles : 'displayName' ou 'subDn'
|
'orderby' => 'displayName', // possible cases : 'displayName' ou 'subDn'
|
||||||
'container_dn' => 'ou=companies',
|
'container_dn' => 'ou=companies',
|
||||||
'display_name_format' => '%{ou}',
|
'display_name_format' => '%{ou}',
|
||||||
'label' => _('Sociétés'),
|
'label' => _('Sociétés'),
|
||||||
|
@ -35,7 +35,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'ou' => array (
|
'ou' => array (
|
||||||
'label' => _('Nom'),
|
'label' => _('Name'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -75,7 +75,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'lsGodfatherDn' => array (
|
'lsGodfatherDn' => array (
|
||||||
'label' => _('Parrain(s)'),
|
'label' => _('Father'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'select_object',
|
'html_type' => 'select_object',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
|
@ -88,7 +88,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array (
|
||||||
array (
|
array (
|
||||||
'basedn' => '%{val}',
|
'basedn' => '%{val}',
|
||||||
'result' => 1,
|
'result' => 1,
|
||||||
'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.")
|
'msg' => _("One or several of these users don't exist.")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'multiple' => 1,
|
'multiple' => 1,
|
||||||
|
|
|
@ -38,18 +38,18 @@ $GLOBALS['LSobjects']['LSeegroup'] = array (
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'display_name_format' => '%{cn}',
|
'display_name_format' => '%{cn}',
|
||||||
'label' => _('Groupes'),
|
'label' => _('Groups'),
|
||||||
'attrs' => array (
|
'attrs' => array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'cn' => array (
|
'cn' => array (
|
||||||
'label' => _('Nom'),
|
'label' => _('Name'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'alphanumeric' => array(
|
'alphanumeric' => array(
|
||||||
'msg' => _('Le nom ne doit comporter que des lettres et des chiffres.')
|
'msg' => _('Name must contain alphanumeric values only.')
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'validation' => array (
|
'validation' => array (
|
||||||
|
@ -73,7 +73,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'gidNumber' => array (
|
'gidNumber' => array (
|
||||||
'label' => _('Identifiant'),
|
'label' => _('Id'),
|
||||||
'ldap_type' => 'numeric',
|
'ldap_type' => 'numeric',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -97,7 +97,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'uniqueMember' => array (
|
'uniqueMember' => array (
|
||||||
'label' => _('Membres'),
|
'label' => _('Members'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'select_object',
|
'html_type' => 'select_object',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
|
@ -151,7 +151,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'lsGodfatherDn' => array (
|
'lsGodfatherDn' => array (
|
||||||
'label' => _('Parrain(s)'),
|
'label' => _('Father(s)'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'select_object',
|
'html_type' => 'select_object',
|
||||||
'html_options' => array (
|
'html_options' => array (
|
||||||
|
@ -164,7 +164,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array (
|
||||||
array (
|
array (
|
||||||
'basedn' => '%{val}',
|
'basedn' => '%{val}',
|
||||||
'result' => 1,
|
'result' => 1,
|
||||||
'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.")
|
'msg' => _("One or several of these users don't exist.")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'multiple' => 1,
|
'multiple' => 1,
|
||||||
|
|
|
@ -46,13 +46,13 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
//'after_create' => 'createMaildirByFTP',
|
//'after_create' => 'createMaildirByFTP',
|
||||||
//'after_delete' => 'removeMaildirByFTP',
|
//'after_delete' => 'removeMaildirByFTP',
|
||||||
'display_name_format' => '%{cn}',
|
'display_name_format' => '%{cn}',
|
||||||
'label' => _('Utilisateurs'),
|
'label' => _('Users'),
|
||||||
|
|
||||||
// LSrelation
|
// LSrelation
|
||||||
'LSrelation' => array(
|
'LSrelation' => array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'label' => _('Appartient aux groupes...'),
|
'label' => _('Belongs to groups ...'),
|
||||||
'emptyText' => _("N'appartient à aucun groupe."),
|
'emptyText' => _("Doesn't belong to any group."),
|
||||||
'LSobject' => 'LSeegroup',
|
'LSobject' => 'LSeegroup',
|
||||||
'list_function' => 'listUserGroups',
|
'list_function' => 'listUserGroups',
|
||||||
'getkeyvalue_function' => 'getMemberKeyValue',
|
'getkeyvalue_function' => 'getMemberKeyValue',
|
||||||
|
@ -72,7 +72,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
// Layout
|
// Layout
|
||||||
'layout' => array (
|
'layout' => array (
|
||||||
'Civilite' => array(
|
'Civilite' => array(
|
||||||
'label' => 'Civilité',
|
'label' => 'Civility',
|
||||||
'img' => 1,
|
'img' => 1,
|
||||||
'args' => array (
|
'args' => array (
|
||||||
'uid',
|
'uid',
|
||||||
|
@ -122,7 +122,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'uid' => array (
|
'uid' => array (
|
||||||
'label' => _('Identifiant'),
|
'label' => _('Identifier'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
|
@ -135,7 +135,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'regex' => array(
|
'regex' => array(
|
||||||
'msg' => _("L'identifiant ne doit comporter que des lettres, des chiffres ou des '.' ou des '-'."),
|
'msg' => _("Identifier must contain alphanumeric values, dots (.) and dashes (-) only."),
|
||||||
'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/')
|
'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/')
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -143,7 +143,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
array (
|
array (
|
||||||
'filter' => 'uid=%{val}',
|
'filter' => 'uid=%{val}',
|
||||||
'result' => 0,
|
'result' => 0,
|
||||||
'msg' => _('Cet identifiant est déjà utilisé.')
|
'msg' => _('This identifier is already used.')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'rights' => array(
|
'rights' => array(
|
||||||
|
@ -164,21 +164,21 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'uidNumber' => array (
|
'uidNumber' => array (
|
||||||
'label' => _('Identifiant (numérique)'),
|
'label' => _('Identifier (number)'),
|
||||||
'ldap_type' => 'numeric',
|
'ldap_type' => 'numeric',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'generate_function' => 'generate_uidNumber',
|
'generate_function' => 'generate_uidNumber',
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'numeric' => array(
|
'numeric' => array(
|
||||||
'msg' => _("L'identifiant unique doit être un entier.")
|
'msg' => _("The unique identifier must be an integer.")
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'validation' => array (
|
'validation' => array (
|
||||||
array (
|
array (
|
||||||
'filter' => 'uidNumber=%{val}',
|
'filter' => 'uidNumber=%{val}',
|
||||||
'result' => 0,
|
'result' => 0,
|
||||||
'msg' => _('Cet uid est déjà utilisé.')
|
'msg' => _('This uid is already used.')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'rights' => array(
|
'rights' => array(
|
||||||
|
@ -193,14 +193,14 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'givenName' => array (
|
'givenName' => array (
|
||||||
'label' => _('Prenom'),
|
'label' => _('First Name'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'default_value' => 'toto',
|
'default_value' => 'toto',
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'alphanumeric' => array(
|
'alphanumeric' => array(
|
||||||
'msg' => _('Le prenom ne doit comporter que des lettres et des chiffres.')
|
'msg' => _('The first name must contain alphanumeric values only.')
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'rights' => array(
|
'rights' => array(
|
||||||
|
@ -220,7 +220,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'sn' => array (
|
'sn' => array (
|
||||||
'label' => _('Nom'),
|
'label' => _('Last Name'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -240,7 +240,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'cn' => array (
|
'cn' => array (
|
||||||
'label' => _('Nom complet'),
|
'label' => _('Full Name'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
|
@ -266,7 +266,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'gidNumber' => array (
|
'gidNumber' => array (
|
||||||
'label' => _('Groupe principal'),
|
'label' => _('Main group'),
|
||||||
'ldap_type' => 'numeric',
|
'ldap_type' => 'numeric',
|
||||||
'html_type' => 'select_list',
|
'html_type' => 'select_list',
|
||||||
'html_options' => array (
|
'html_options' => array (
|
||||||
|
@ -293,7 +293,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'validation' => array (
|
'validation' => array (
|
||||||
array (
|
array (
|
||||||
'msg' => _("Ce groupe n'existe pas."),
|
'msg' => _("This group doesn't exist."),
|
||||||
'object_type' => 'LSeegroup', // 'object_type' : Permet definir le type d'objet recherchés
|
'object_type' => 'LSeegroup', // 'object_type' : Permet definir le type d'objet recherchés
|
||||||
//'basedn' => 'o=company', // et d'utiliser les objectClass définis dans le fichier de configuration
|
//'basedn' => 'o=company', // et d'utiliser les objectClass définis dans le fichier de configuration
|
||||||
'filter' => '(gidNumber=%{val})', // pour la recherche
|
'filter' => '(gidNumber=%{val})', // pour la recherche
|
||||||
|
@ -314,8 +314,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'loginShell' => array (
|
'loginShell' => array (
|
||||||
'label' => _('Interpreteur de commande'),
|
'label' => _('Command shell'),
|
||||||
'help_info' => _("Permet ou non a l'utilisateur de se connecter à un système POSIX."),
|
'help_info' => _("Allow user to connect a POSIX system."),
|
||||||
'ldap_type' => 'boolean',
|
'ldap_type' => 'boolean',
|
||||||
'ldap_options' => array (
|
'ldap_options' => array (
|
||||||
'true_value' => '/bin/bash',
|
'true_value' => '/bin/bash',
|
||||||
|
@ -337,7 +337,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'sambaSID' => array (
|
'sambaSID' => array (
|
||||||
'label' => _('Identifiant Samba'),
|
'label' => _('Samba Identifier'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -353,7 +353,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'homeDirectory' => array (
|
'homeDirectory' => array (
|
||||||
'label' => _('Répertoire personnel'),
|
'label' => _('Self Directory'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -367,7 +367,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'mail' => array (
|
'mail' => array (
|
||||||
'label' => _('Adresse e-mail'),
|
'label' => _('E-mail address'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'mail',
|
'html_type' => 'mail',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
|
@ -379,7 +379,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'msg' => _("L'adresse e-mail entrée n'est pas valide."),
|
'msg' => _("Given email address is invalid."),
|
||||||
'params' => array('checkDomain' => false)
|
'params' => array('checkDomain' => false)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -399,7 +399,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'personalTitle' => array (
|
'personalTitle' => array (
|
||||||
'label' => _('Titre'),
|
'label' => _('Civility'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'select_list',
|
'html_type' => 'select_list',
|
||||||
'html_options' => array (
|
'html_options' => array (
|
||||||
|
@ -447,7 +447,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'userPassword' => array (
|
'userPassword' => array (
|
||||||
'label' => _('Mot de passe'),
|
'label' => _('Password'),
|
||||||
'ldap_type' => 'password',
|
'ldap_type' => 'password',
|
||||||
'ldap_options' => array (
|
'ldap_options' => array (
|
||||||
'encode' => 'md5'
|
'encode' => 'md5'
|
||||||
|
@ -468,14 +468,14 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'mail' => array(
|
'mail' => array(
|
||||||
'send' => 1,
|
'send' => 1,
|
||||||
'ask' => 1,
|
'ask' => 1,
|
||||||
'subject' => "LSexample : votre nouveau mot de passe",
|
'subject' => "LSexample : Your new credentials",
|
||||||
'msg' => "Votre mot de passe vient d'etre modifie.\nNouveau mot de passe : %{mdp}",
|
'msg' => "Your password has been changed.\nNew password : %{mdp}",
|
||||||
'mail_attr' => 'mail'
|
'mail_attr' => 'mail'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'check_data' => array(
|
'check_data' => array(
|
||||||
'password' => array(
|
'password' => array(
|
||||||
'msg' => 'Le mot de passe doit contenir entre 8 et 10 caractères.',
|
'msg' => 'Your password must contain from 8 to 10 characters.',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'minLength' => 8,
|
'minLength' => 8,
|
||||||
'maxLength' => 10
|
'maxLength' => 10
|
||||||
|
@ -502,7 +502,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'lsRecoveryHash' => array (
|
'lsRecoveryHash' => array (
|
||||||
'label' => _('Hash de recouvrement du mot de passe'),
|
'label' => _('Password recovery hash'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 0,
|
'required' => 0,
|
||||||
|
@ -518,7 +518,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'sambaLMPassword' => array (
|
'sambaLMPassword' => array (
|
||||||
'label' => _('Mot de passe Samba (LM)'),
|
'label' => _('Samba Password (LM)'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -531,7 +531,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'sambaNTPassword' => array (
|
'sambaNTPassword' => array (
|
||||||
'label' => _('Mot de passe Samba (NT)'),
|
'label' => _('Samba Password (NT)'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
|
@ -544,26 +544,26 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'jpegPhoto' => array (
|
'jpegPhoto' => array (
|
||||||
'label' => _('Photo'),
|
'label' => _('Picture'),
|
||||||
'ldap_type' => 'image',
|
'ldap_type' => 'image',
|
||||||
'html_type' => 'image',
|
'html_type' => 'image',
|
||||||
'required' => 0,
|
'required' => 0,
|
||||||
'view' => 0,
|
'view' => 0,
|
||||||
'check_data' => array (
|
'check_data' => array (
|
||||||
'imagesize' => array(
|
'imagesize' => array(
|
||||||
'msg' => _("La taille de l'image n'est pas valide."),
|
'msg' => _("Picture size is not valid."),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'maxWidth' => 2000
|
'maxWidth' => 2000
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'imagefilesize' => array(
|
'imagefilesize' => array(
|
||||||
'msg' => _("La taille du fichier image n'est pas valide."),
|
'msg' => _("File size is not valid."),
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'maxSize' => 3000000 // taille du fichier en octets
|
'maxSize' => 3000000 // taille du fichier en octets
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'imagefile' => array(
|
'imagefile' => array(
|
||||||
'msg' => _("Le type du fichier n'est pas valide.")
|
'msg' => _("File type is not valid.")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'form' => array (
|
'form' => array (
|
||||||
|
@ -580,7 +580,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
|
|
||||||
/* ----------- start -----------*/
|
/* ----------- start -----------*/
|
||||||
'lsGodfatherDn' => array (
|
'lsGodfatherDn' => array (
|
||||||
'label' => _('Parrain(s)'),
|
'label' => _('Father(s)'),
|
||||||
'ldap_type' => 'ascii',
|
'ldap_type' => 'ascii',
|
||||||
'html_type' => 'select_object',
|
'html_type' => 'select_object',
|
||||||
'html_options' => array (
|
'html_options' => array (
|
||||||
|
@ -593,7 +593,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
array (
|
array (
|
||||||
'basedn' => '%{val}',
|
'basedn' => '%{val}',
|
||||||
'result' => 1,
|
'result' => 1,
|
||||||
'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.")
|
'msg' => _("One or several users don't exist.")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'multiple' => 1,
|
'multiple' => 1,
|
||||||
|
|
|
@ -81,12 +81,12 @@ $GLOBALS['LSconfig'] = array(
|
||||||
'recoveryHashAttr' => 'lsRecoveryHash',
|
'recoveryHashAttr' => 'lsRecoveryHash',
|
||||||
'recoveryEmailSender' => 'noreply-recover@ls.com',
|
'recoveryEmailSender' => 'noreply-recover@ls.com',
|
||||||
'recoveryHashMail' => array(
|
'recoveryHashMail' => array(
|
||||||
'subject' => 'LSexample : Récupération de votre mot de passe.',
|
'subject' => 'LSexample : Recovering your password.',
|
||||||
'msg' => "Pour poursuivre le processus de récupération de votre mot de passe,\nmerci de cliquer de vous rendre à l'adresse suivante :\n%{url}"
|
'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
|
||||||
),
|
),
|
||||||
'newPasswordMail' => array(
|
'newPasswordMail' => array(
|
||||||
'subject' => 'LSexample : Votre nouveau mot de passe.',
|
'subject' => 'LSexample : Your new credentials',
|
||||||
'msg' => "Votre nouveau mot de passe : %{mdp}"
|
'msg' => "Your new password : %{mdp}"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'emailSender' => 'noreply@ls.com'
|
'emailSender' => 'noreply@ls.com'
|
||||||
|
@ -117,7 +117,7 @@ $GLOBALS['LSconfig'] = array(
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'authObjectType' => 'LSeepeople',
|
'authObjectType' => 'LSeepeople',
|
||||||
'subDnLabel' => _('Société'),
|
'subDnLabel' => _('Company'),
|
||||||
'subDn' => array(
|
'subDn' => array(
|
||||||
'== Toutes ==' => array(
|
'== Toutes ==' => array(
|
||||||
'dn' => 'o=ls',
|
'dn' => 'o=ls',
|
||||||
|
@ -144,12 +144,12 @@ $GLOBALS['LSconfig'] = array(
|
||||||
'recoveryHashAttr' => 'lsRecoveryHash',
|
'recoveryHashAttr' => 'lsRecoveryHash',
|
||||||
'recoveryEmailSender' => 'noreply-recover@lsexample.net',
|
'recoveryEmailSender' => 'noreply-recover@lsexample.net',
|
||||||
'recoveryHashMail' => array(
|
'recoveryHashMail' => array(
|
||||||
'subject' => 'LSexample : Récupération de votre mot de passe.',
|
'subject' => 'LSexample : Recovering your password.',
|
||||||
'msg' => "Pour poursuivre le processus de récupération de votre mot de passe,\nmerci de cliquer de vous rendre à l'adresse suivante :\n%{url}"
|
'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
|
||||||
),
|
),
|
||||||
'newPasswordMail' => array(
|
'newPasswordMail' => array(
|
||||||
'subject' => 'LSexample : Votre nouveau mot de passe.',
|
'subject' => 'LSexample : Your new credentials.',
|
||||||
'msg' => "Votre nouveau mot de passe : %{mdp}"
|
'msg' => "Your new password : %{mdp}"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'emailSender' => 'noreply@lsexample.net'
|
'emailSender' => 'noreply@lsexample.net'
|
||||||
|
|
|
@ -47,7 +47,7 @@ if(LSsession :: startLSsession()) {
|
||||||
// Data update for LDAP object
|
// Data update for LDAP object
|
||||||
if ($object -> updateData('create')) {
|
if ($object -> updateData('create')) {
|
||||||
if (!LSerror::errorsDefined()) {
|
if (!LSerror::errorsDefined()) {
|
||||||
LSsession :: addInfo(_("L'objet a bien été ajouté."));
|
LSsession :: addInfo(_("Object has been added."));
|
||||||
}
|
}
|
||||||
if (isset($_REQUEST['ajax'])) {
|
if (isset($_REQUEST['ajax'])) {
|
||||||
LSsession :: displayAjaxReturn (
|
LSsession :: displayAjaxReturn (
|
||||||
|
@ -86,7 +86,7 @@ if(LSsession :: startLSsession()) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
// Define page title
|
// Define page title
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Nouveau').' : '.$object -> getLabel());
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('New').' : '.$object -> getLabel());
|
||||||
LSsession :: setTemplate('create.tpl');
|
LSsession :: setTemplate('create.tpl');
|
||||||
$form -> display();
|
$form -> display();
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,8 +85,8 @@ class LSform {
|
||||||
LSsession :: addHelpInfos(
|
LSsession :: addHelpInfos(
|
||||||
'LSform',
|
'LSform',
|
||||||
array(
|
array(
|
||||||
'addFieldBtn' => _('Ajouter un champ pour saisir une autre valeur.'),
|
'addFieldBtn' => _('Add a field to add another values.'),
|
||||||
'removeFieldBtn' => _('Supprimer ce champ.')
|
'removeFieldBtn' => _('Delete this field.')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ class LSform {
|
||||||
|
|
||||||
if (is_array($GLOBALS['LSobjects'][$LSform_object['type']]['LSform']['layout'])) {
|
if (is_array($GLOBALS['LSobjects'][$LSform_object['type']]['LSform']['layout'])) {
|
||||||
$GLOBALS['Smarty'] -> assign('LSform_layout',$GLOBALS['LSobjects'][$LSform_object['type']]['LSform']['layout']);
|
$GLOBALS['Smarty'] -> assign('LSform_layout',$GLOBALS['LSobjects'][$LSform_object['type']]['LSform']['layout']);
|
||||||
$GLOBALS['Smarty'] -> assign('LSform_layout_nofield_label',_('Aucun champ.'));
|
$GLOBALS['Smarty'] -> assign('LSform_layout_nofield_label',_('No field.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ class LSform {
|
||||||
$msg_error=getFData($msg,$attr->getLabel());
|
$msg_error=getFData($msg,$attr->getLabel());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$msg_error=getFData(_("Les données pour l'attribut %{label} ne sont pas valides."),$attr->getLabel());
|
$msg_error=getFData(_("%{label} attribute data is not valid."),$attr->getLabel());
|
||||||
}
|
}
|
||||||
$this -> _elementsErrors[$attr->name][]=$msg_error;
|
$this -> _elementsErrors[$attr->name][]=$msg_error;
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ class LSform {
|
||||||
if (!$this -> checkData()) {
|
if (!$this -> checkData()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LSdebug("les données sont checkées");
|
LSdebug("Data are checked up");
|
||||||
$this -> _isValidate = true;
|
$this -> _isValidate = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ class LSform {
|
||||||
}
|
}
|
||||||
if ($this -> elements[$element] -> isRequired()) {
|
if ($this -> elements[$element] -> isRequired()) {
|
||||||
if (!$this -> checkRequired($values)) {
|
if (!$this -> checkRequired($values)) {
|
||||||
$this -> setElementError($this -> elements[$element],_("Champ obligatoire"));
|
$this -> setElementError($this -> elements[$element],_("Mandatory field"));
|
||||||
$retval=false;
|
$retval=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -433,7 +433,7 @@ class LSldapObject {
|
||||||
$msg_error=getFData($test['msg'],$this,'getValue');
|
$msg_error=getFData($test['msg'],$this,'getValue');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$msg_error=getFData(_("L'attribut %{attr} n'est pas valide."),$attr -> getLabel());
|
$msg_error=getFData(_("The attribute %{attr} is not valid."),$attr -> getLabel());
|
||||||
}
|
}
|
||||||
foreach($data as $val) {
|
foreach($data as $val) {
|
||||||
// validation par check LDAP
|
// validation par check LDAP
|
||||||
|
@ -1695,13 +1695,13 @@ class LSldapObject {
|
||||||
* Error Codes
|
* Error Codes
|
||||||
**/
|
**/
|
||||||
LSerror :: defineError('LSldapObject_01',
|
LSerror :: defineError('LSldapObject_01',
|
||||||
_("LSldapObject : Object type unknow.")
|
_("LSldapObject : Object type unknown.")
|
||||||
);
|
);
|
||||||
LSerror :: defineError('LSldapObject_02',
|
LSerror :: defineError('LSldapObject_02',
|
||||||
_("LSldapObject : Update form is not defined for the object %{obj}.")
|
_("LSldapObject : Update form is not defined for the object %{obj}.")
|
||||||
);
|
);
|
||||||
LSerror :: defineError('LSldapObject_03',
|
LSerror :: defineError('LSldapObject_03',
|
||||||
_("LSldapObject : No form exist for the object %{obj}.")
|
_("LSldapObject : No form exists for the object %{obj}.")
|
||||||
);
|
);
|
||||||
LSerror :: defineError('LSldapObject_04',
|
LSerror :: defineError('LSldapObject_04',
|
||||||
_("LSldapObject : The function %{func} to validate the attribute %{attr} the object %{obj} is unknow.")
|
_("LSldapObject : The function %{func} to validate the attribute %{attr} the object %{obj} is unknow.")
|
||||||
|
|
|
@ -838,7 +838,7 @@ class LSsession {
|
||||||
* @retval void
|
* @retval void
|
||||||
*/
|
*/
|
||||||
public static function displayLoginForm() {
|
public static function displayLoginForm() {
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Connexion'));
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Connection'));
|
||||||
if (isset($_GET['LSsession_logout'])) {
|
if (isset($_GET['LSsession_logout'])) {
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_action','index.php');
|
$GLOBALS['Smarty'] -> assign('loginform_action','index.php');
|
||||||
}
|
}
|
||||||
|
@ -848,7 +848,7 @@ class LSsession {
|
||||||
if (count($GLOBALS['LSconfig']['ldap_servers'])==1) {
|
if (count($GLOBALS['LSconfig']['ldap_servers'])==1) {
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_ldapserver_style','style="display: none"');
|
$GLOBALS['Smarty'] -> assign('loginform_ldapserver_style','style="display: none"');
|
||||||
}
|
}
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_ldapserver',_('Serveur LDAP'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_ldapserver',_('LDAP server'));
|
||||||
$ldapservers_name=array();
|
$ldapservers_name=array();
|
||||||
$ldapservers_index=array();
|
$ldapservers_index=array();
|
||||||
foreach($GLOBALS['LSconfig']['ldap_servers'] as $id => $infos) {
|
foreach($GLOBALS['LSconfig']['ldap_servers'] as $id => $infos) {
|
||||||
|
@ -859,10 +859,10 @@ class LSsession {
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_ldapservers_index',$ldapservers_index);
|
$GLOBALS['Smarty'] -> assign('loginform_ldapservers_index',$ldapservers_index);
|
||||||
|
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_level',_('Niveau'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_level',_('Niveau'));
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifiant'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifier'));
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Mot de passe'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Password'));
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connexion'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connect'));
|
||||||
$GLOBALS['Smarty'] -> assign('loginform_label_recoverPassword',_('Mot de passe oublié ?'));
|
$GLOBALS['Smarty'] -> assign('loginform_label_recoverPassword',_('Forgot your password ?'));
|
||||||
|
|
||||||
self :: setTemplate('login.tpl');
|
self :: setTemplate('login.tpl');
|
||||||
self :: addJSscript('LSsession_login.js');
|
self :: addJSscript('LSsession_login.js');
|
||||||
|
@ -880,14 +880,14 @@ class LSsession {
|
||||||
* @retval void
|
* @retval void
|
||||||
*/
|
*/
|
||||||
public static function displayRecoverPasswordForm($recoveryPasswordInfos) {
|
public static function displayRecoverPasswordForm($recoveryPasswordInfos) {
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Récupération de votre mot de passe'));
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Recovery of your credentials'));
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_action','index.php?LSsession_recoverPassword');
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_action','index.php?LSsession_recoverPassword');
|
||||||
|
|
||||||
if (count($GLOBALS['LSconfig']['ldap_servers'])==1) {
|
if (count($GLOBALS['LSconfig']['ldap_servers'])==1) {
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapserver_style','style="display: none"');
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapserver_style','style="display: none"');
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_ldapserver',_('Serveur LDAP'));
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_ldapserver',_('LDAP server'));
|
||||||
$ldapservers_name=array();
|
$ldapservers_name=array();
|
||||||
$ldapservers_index=array();
|
$ldapservers_index=array();
|
||||||
foreach($GLOBALS['LSconfig']['ldap_servers'] as $id => $infos) {
|
foreach($GLOBALS['LSconfig']['ldap_servers'] as $id => $infos) {
|
||||||
|
@ -897,23 +897,23 @@ class LSsession {
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapservers_name',$ldapservers_name);
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapservers_name',$ldapservers_name);
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapservers_index',$ldapservers_index);
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_ldapservers_index',$ldapservers_index);
|
||||||
|
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_user',_('Identifiant'));
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_user',_('Identifier'));
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_submit',_('Valider'));
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_submit',_('Valid'));
|
||||||
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_back',_('Retour'));
|
$GLOBALS['Smarty'] -> assign('recoverpasswordform_label_back',_('Back'));
|
||||||
|
|
||||||
$recoverpassword_msg = _('Veuillez saisir votre identifiant pour poursuivre le processus de récupération de votre mot de passe');
|
$recoverpassword_msg = _('Please fill the identifier field to proceed recovery procedure');
|
||||||
|
|
||||||
if (isset($recoveryPasswordInfos['recoveryHashMail'])) {
|
if (isset($recoveryPasswordInfos['recoveryHashMail'])) {
|
||||||
$recoverpassword_msg = getFData(
|
$recoverpassword_msg = getFData(
|
||||||
_("Un mail vient de vous être envoyé à l'adresse %{mail}. " .
|
_("An email has been sent to %{mail}. " .
|
||||||
"Merci de suivre les indications contenus dans ce mail."),
|
"Please follow the instructions on it."),
|
||||||
$recoveryPasswordInfos['recoveryHashMail']
|
$recoveryPasswordInfos['recoveryHashMail']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($recoveryPasswordInfos['newPasswordMail'])) {
|
if (isset($recoveryPasswordInfos['newPasswordMail'])) {
|
||||||
$recoverpassword_msg = getFData(
|
$recoverpassword_msg = getFData(
|
||||||
_("Votre nouveau mot de passe vient de vous être envoyé à l'adresse %{mail}. "),
|
_("Your new password has been sent to %{mail}. "),
|
||||||
$recoveryPasswordInfos['newPasswordMail']
|
$recoveryPasswordInfos['newPasswordMail']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1039,7 +1039,7 @@ class LSsession {
|
||||||
if (is_array($listTopDn)) {
|
if (is_array($listTopDn)) {
|
||||||
asort($listTopDn);
|
asort($listTopDn);
|
||||||
$GLOBALS['Smarty'] -> assign('label_level',self :: getSubDnLabel());
|
$GLOBALS['Smarty'] -> assign('label_level',self :: getSubDnLabel());
|
||||||
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
$GLOBALS['Smarty'] -> assign('_refresh',_('Refresh'));
|
||||||
$LSsession_topDn_index = array();
|
$LSsession_topDn_index = array();
|
||||||
$LSsession_topDn_name = array();
|
$LSsession_topDn_name = array();
|
||||||
foreach($listTopDn as $index => $name) {
|
foreach($listTopDn as $index => $name) {
|
||||||
|
@ -1301,7 +1301,7 @@ class LSsession {
|
||||||
foreach($LSaccess as $dn => $access) {
|
foreach($LSaccess as $dn => $access) {
|
||||||
$LSaccess[$dn] = array_merge(
|
$LSaccess[$dn] = array_merge(
|
||||||
array(
|
array(
|
||||||
'SELF' => _('Mon compte')
|
'SELF' => _('My account')
|
||||||
),
|
),
|
||||||
$access
|
$access
|
||||||
);
|
);
|
||||||
|
@ -1664,7 +1664,7 @@ class LSsession {
|
||||||
* @retval string Le label des niveaux pour le serveur ldap dourant
|
* @retval string Le label des niveaux pour le serveur ldap dourant
|
||||||
*/
|
*/
|
||||||
public static function getSubDnLabel() {
|
public static function getSubDnLabel() {
|
||||||
return (self :: $ldapServer['subDnLabel']!='')?self :: $ldapServer['subDnLabel']:_('Niveau');
|
return (self :: $ldapServer['subDnLabel']!='')?self :: $ldapServer['subDnLabel']:_('Level');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,7 +25,7 @@ require_once 'includes/class/class.LSsession.php';
|
||||||
if(LSsession :: startLSsession()) {
|
if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
// Définition du Titre de la page
|
// Définition du Titre de la page
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Accueil'));
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Home'));
|
||||||
|
|
||||||
// Template
|
// Template
|
||||||
LSsession :: setTemplate('accueil.tpl');
|
LSsession :: setTemplate('accueil.tpl');
|
||||||
|
|
|
@ -205,7 +205,7 @@ if (!isset($_ERRORS)) {
|
||||||
$data['html'] = "<li>".$relationConf['emptyText']."</li>\n";
|
$data['html'] = "<li>".$relationConf['emptyText']."</li>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data['html'] = "<li>"._('Aucun objet en relation.')."</li>\n";
|
$data['html'] = "<li>"._('No object.')."</li>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$data['id'] = $_REQUEST['id'];
|
$data['id'] = $_REQUEST['id'];
|
||||||
|
@ -377,8 +377,8 @@ if (!isset($_ERRORS)) {
|
||||||
else if(empty($_REQUEST['mails'])) {
|
else if(empty($_REQUEST['mails'])) {
|
||||||
$GLOBALS['Smarty'] -> assign('LSmail_mails',array($_REQUEST['mails']));
|
$GLOBALS['Smarty'] -> assign('LSmail_mails',array($_REQUEST['mails']));
|
||||||
}
|
}
|
||||||
$GLOBALS['Smarty'] -> assign('LSmail_mail_label',_('E-mail'));
|
$GLOBALS['Smarty'] -> assign('LSmail_mail_label',_('Email'));
|
||||||
$GLOBALS['Smarty'] -> assign('LSmail_subject_label',_('Sujet'));
|
$GLOBALS['Smarty'] -> assign('LSmail_subject_label',_('Title'));
|
||||||
$GLOBALS['Smarty'] -> assign('LSmail_msg_label',_('Message'));
|
$GLOBALS['Smarty'] -> assign('LSmail_msg_label',_('Message'));
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
|
@ -390,7 +390,7 @@ if (!isset($_ERRORS)) {
|
||||||
if (LSsession ::loadLSaddon('mail')) {
|
if (LSsession ::loadLSaddon('mail')) {
|
||||||
if(sendMail($_REQUEST['infos']['mail'],$_REQUEST['infos']['subject'],$_REQUEST['infos']['msg'])) {
|
if(sendMail($_REQUEST['infos']['mail'],$_REQUEST['infos']['subject'],$_REQUEST['infos']['msg'])) {
|
||||||
$data = array(
|
$data = array(
|
||||||
'msgok' => _("Votre message a bien été envoyé.")
|
'msgok' => _("Your message has been sent successfully.")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,16 +45,16 @@ if(LSsession :: startLSsession()) {
|
||||||
$object = new $LSobject();
|
$object = new $LSobject();
|
||||||
if ($object -> loadData($dn)) {
|
if ($object -> loadData($dn)) {
|
||||||
// Définition du Titre de la page
|
// Définition du Titre de la page
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Modifier').' : '.$object -> getDisplayName());
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Modify').' : '.$object -> getDisplayName());
|
||||||
$form = $object -> getForm('modify');
|
$form = $object -> getForm('modify');
|
||||||
if ($form->validate()) {
|
if ($form->validate()) {
|
||||||
// MàJ des données de l'objet LDAP
|
// MàJ des données de l'objet LDAP
|
||||||
if ($object -> updateData('modify')) {
|
if ($object -> updateData('modify')) {
|
||||||
if (LSerror::errorsDefined()) {
|
if (LSerror::errorsDefined()) {
|
||||||
LSsession :: addInfo(_("L'objet a été modifié partiellement."));
|
LSsession :: addInfo(_("The object has been partially modified."));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LSsession :: addInfo(_("L'objet a bien été modifié."));
|
LSsession :: addInfo(_("The object has been modified successfully."));
|
||||||
}
|
}
|
||||||
if (isset($_REQUEST['ajax'])) {
|
if (isset($_REQUEST['ajax'])) {
|
||||||
LSsession :: displayAjaxReturn (
|
LSsession :: displayAjaxReturn (
|
||||||
|
@ -95,14 +95,14 @@ if(LSsession :: startLSsession()) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Voir'),
|
'label' => _('Check'),
|
||||||
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
||||||
'action' => 'view'
|
'action' => 'view'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (LSsession :: canRemove($LSobject,$object -> getDn())) {
|
if (LSsession :: canRemove($LSobject,$object -> getDn())) {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Supprimer'),
|
'label' => _('Delete'),
|
||||||
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
||||||
'action' => 'delete'
|
'action' => 'delete'
|
||||||
);
|
);
|
||||||
|
|
|
@ -32,9 +32,9 @@ if(LSsession :: startLSsession()) {
|
||||||
if ($object -> loadData($_GET['dn'])) {
|
if ($object -> loadData($_GET['dn'])) {
|
||||||
if (isset($_GET['valid'])) {
|
if (isset($_GET['valid'])) {
|
||||||
$objectname=$object -> getDisplayName();
|
$objectname=$object -> getDisplayName();
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Suppression').' : '.$objectname);
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Deleting').' : '.$objectname);
|
||||||
if ($object -> remove()) {
|
if ($object -> remove()) {
|
||||||
LSsession :: addInfo($objectname.' '._('a bien été supprimé').'.');
|
LSsession :: addInfo($objectname.' '._('has been deleted successfully').'.');
|
||||||
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -43,10 +43,10 @@ if(LSsession :: startLSsession()) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Définition du Titre de la page
|
// Définition du Titre de la page
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Suppresion').' : '.$object -> getDisplayName());
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('Deleting').' : '.$object -> getDisplayName());
|
||||||
$GLOBALS['Smarty'] -> assign('question',_('Voulez-vous vraiment supprimer').' <strong>'.$object -> getDisplayName().'</strong> ?');
|
$GLOBALS['Smarty'] -> assign('question',_('To you really want to delete').' <strong>'.$object -> getDisplayName().'</strong> ?');
|
||||||
$GLOBALS['Smarty'] -> assign('validation_url','remove.php?LSobject='.$_GET['LSobject'].'&dn='.$_GET['dn'].'&valid');
|
$GLOBALS['Smarty'] -> assign('validation_url','remove.php?LSobject='.$_GET['LSobject'].'&dn='.$_GET['dn'].'&valid');
|
||||||
$GLOBALS['Smarty'] -> assign('validation_txt',_('Valider'));
|
$GLOBALS['Smarty'] -> assign('validation_txt',_('Validate'));
|
||||||
}
|
}
|
||||||
LSsession :: setTemplate('question.tpl');
|
LSsession :: setTemplate('question.tpl');
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,7 +183,7 @@ if(LSsession :: startLSsession()) {
|
||||||
else {
|
else {
|
||||||
LSdebug('Load');
|
LSdebug('Load');
|
||||||
$LSview_actions[] = array (
|
$LSview_actions[] = array (
|
||||||
'label' => _('Rafraîchir'),
|
'label' => _('Refresh'),
|
||||||
'url' => 'view.php?LSobject='.$LSobject.'&refresh',
|
'url' => 'view.php?LSobject='.$LSobject.'&refresh',
|
||||||
'action' => 'refresh'
|
'action' => 'refresh'
|
||||||
);
|
);
|
||||||
|
@ -289,14 +289,14 @@ if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
$GLOBALS['Smarty']->assign('LSview_search',array(
|
$GLOBALS['Smarty']->assign('LSview_search',array(
|
||||||
'action' => $_SERVER['PHP_SELF'],
|
'action' => $_SERVER['PHP_SELF'],
|
||||||
'submit' => _('Rechercher'),
|
'submit' => _('Search'),
|
||||||
'LSobject' => $LSobject
|
'LSobject' => $LSobject
|
||||||
));
|
));
|
||||||
|
|
||||||
$GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recherche récursive'));
|
$GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recursive search'));
|
||||||
$GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Recherche approximative'));
|
$GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Approximative search'));
|
||||||
|
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list_without_result_label',_("Cette recherche n'a retourné aucun résultat."));
|
$GLOBALS['Smarty']->assign('LSobject_list_without_result_label',_("This search didn't get any result."));
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list',$searchData['objectList']);
|
$GLOBALS['Smarty']->assign('LSobject_list',$searchData['objectList']);
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list_objecttype',$LSobject);
|
$GLOBALS['Smarty']->assign('LSobject_list_objecttype',$LSobject);
|
||||||
$GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']);
|
$GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']);
|
||||||
|
|
|
@ -40,7 +40,7 @@ if(LSsession :: startLSsession()) {
|
||||||
if (LSsession :: canAccess($LSobject,$dn)) {
|
if (LSsession :: canAccess($LSobject,$dn)) {
|
||||||
if ( LSsession :: canEdit($LSobject,$dn) ) {
|
if ( LSsession :: canEdit($LSobject,$dn) ) {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Modifier'),
|
'label' => _('Modify'),
|
||||||
'url' =>'modify.php?LSobject='.$LSobject.'&dn='.$dn,
|
'url' =>'modify.php?LSobject='.$LSobject.'&dn='.$dn,
|
||||||
'action' => 'modify'
|
'action' => 'modify'
|
||||||
);
|
);
|
||||||
|
@ -48,7 +48,7 @@ if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
if (LSsession :: canCreate($LSobject)) {
|
if (LSsession :: canCreate($LSobject)) {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Copier'),
|
'label' => _('Copy'),
|
||||||
'url' =>'create.php?LSobject='.$LSobject.'&load='.$dn,
|
'url' =>'create.php?LSobject='.$LSobject.'&load='.$dn,
|
||||||
'action' => 'copy'
|
'action' => 'copy'
|
||||||
);
|
);
|
||||||
|
@ -56,7 +56,7 @@ if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
if (LSsession :: canRemove($LSobject,$dn)) {
|
if (LSsession :: canRemove($LSobject,$dn)) {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Supprimer'),
|
'label' => _('Delete'),
|
||||||
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$dn,
|
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$dn,
|
||||||
'action' => 'delete'
|
'action' => 'delete'
|
||||||
);
|
);
|
||||||
|
@ -69,7 +69,7 @@ if(LSsession :: startLSsession()) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$object = LSsession :: getLSuserObject();
|
$object = LSsession :: getLSuserObject();
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',_('Mon compte'));
|
$GLOBALS['Smarty'] -> assign('pagetitle',_('My account'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$view = $object -> getView();
|
$view = $object -> getView();
|
||||||
|
@ -90,7 +90,7 @@ if(LSsession :: startLSsession()) {
|
||||||
$return['emptyText'] = $relationConf['emptyText'];
|
$return['emptyText'] = $relationConf['emptyText'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$return['emptyText'] = _('Aucun objet en relation.');
|
$return['emptyText'] = _('No object.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$id=rand();
|
$id=rand();
|
||||||
|
@ -105,7 +105,7 @@ if(LSsession :: startLSsession()) {
|
||||||
);
|
);
|
||||||
if (LSsession :: relationCanEdit($object -> getValue('dn'),$LSobject,$relationName)) {
|
if (LSsession :: relationCanEdit($object -> getValue('dn'),$LSobject,$relationName)) {
|
||||||
$return['actions'][] = array(
|
$return['actions'][] = array(
|
||||||
'label' => _('Modifier'),
|
'label' => _('Modify'),
|
||||||
'url' => 'select.php?LSobject='.$relationConf['LSobject'].'&multiple=1',
|
'url' => 'select.php?LSobject='.$relationConf['LSobject'].'&multiple=1',
|
||||||
'action' => 'modify'
|
'action' => 'modify'
|
||||||
);
|
);
|
||||||
|
@ -289,12 +289,12 @@ if(LSsession :: startLSsession()) {
|
||||||
if ((LSsession :: cacheSearch()) && isset($_SESSION['LSsession']['LSsearch'][$hash]) && (!isset($_REQUEST['refresh']))) {
|
if ((LSsession :: cacheSearch()) && isset($_SESSION['LSsession']['LSsearch'][$hash]) && (!isset($_REQUEST['refresh']))) {
|
||||||
// On affiche à partir du cache
|
// On affiche à partir du cache
|
||||||
$searchData=$_SESSION['LSsession']['LSsearch'][$hash];
|
$searchData=$_SESSION['LSsession']['LSsearch'][$hash];
|
||||||
LSdebug('Recherche : From cache');
|
LSdebug('Find : From cache');
|
||||||
if(!isset($searchData['LSview_actions']['create'])) {
|
if(!isset($searchData['LSview_actions']['create'])) {
|
||||||
LSdebug('Recherche : Check Create()');
|
LSdebug('Recherche : Check Create()');
|
||||||
if (LSsession :: canCreate($LSobject)) {
|
if (LSsession :: canCreate($LSobject)) {
|
||||||
$searchData['LSview_actions']['create'] = array (
|
$searchData['LSview_actions']['create'] = array (
|
||||||
'label' => _('Nouveau'),
|
'label' => _('New'),
|
||||||
'url' => 'create.php?LSobject='.$LSobject,
|
'url' => 'create.php?LSobject='.$LSobject,
|
||||||
'action' => 'create'
|
'action' => 'create'
|
||||||
);
|
);
|
||||||
|
@ -306,10 +306,10 @@ if(LSsession :: startLSsession()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // Load
|
else { // Load
|
||||||
LSdebug('Recherche : Load');
|
LSdebug('Find : Load');
|
||||||
if (LSsession :: canCreate($LSobject)) {
|
if (LSsession :: canCreate($LSobject)) {
|
||||||
$LSview_actions['create'] = array (
|
$LSview_actions['create'] = array (
|
||||||
'label' => _('Nouveau'),
|
'label' => _('New'),
|
||||||
'url' => 'create.php?LSobject='.$LSobject,
|
'url' => 'create.php?LSobject='.$LSobject,
|
||||||
'action' => 'create'
|
'action' => 'create'
|
||||||
);
|
);
|
||||||
|
@ -319,7 +319,7 @@ if(LSsession :: startLSsession()) {
|
||||||
$LSview_actions['create'] = false;
|
$LSview_actions['create'] = false;
|
||||||
}
|
}
|
||||||
$LSview_actions['refresh'] = array (
|
$LSview_actions['refresh'] = array (
|
||||||
'label' => _('Rafraîchir'),
|
'label' => _('Refresh'),
|
||||||
'url' => 'view.php?LSobject='.$LSobject.'&refresh',
|
'url' => 'view.php?LSobject='.$LSobject.'&refresh',
|
||||||
'action' => 'refresh'
|
'action' => 'refresh'
|
||||||
);
|
);
|
||||||
|
@ -359,14 +359,14 @@ if(LSsession :: startLSsession()) {
|
||||||
$actions=array();
|
$actions=array();
|
||||||
|
|
||||||
$actions[] = array(
|
$actions[] = array(
|
||||||
'label' => _('Voir'),
|
'label' => _('Check'),
|
||||||
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
||||||
'action' => 'view'
|
'action' => 'view'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (LSsession :: canEdit($LSobject,$searchData['objectList'][$i]['dn'])) {
|
if (LSsession :: canEdit($LSobject,$searchData['objectList'][$i]['dn'])) {
|
||||||
$actions[]=array(
|
$actions[]=array(
|
||||||
'label' => _('Modifier'),
|
'label' => _('Modify'),
|
||||||
'url' => 'modify.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
'url' => 'modify.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
||||||
'action' => 'modify'
|
'action' => 'modify'
|
||||||
);
|
);
|
||||||
|
@ -374,7 +374,7 @@ if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
if ($canCopy) {
|
if ($canCopy) {
|
||||||
$actions[] = array(
|
$actions[] = array(
|
||||||
'label' => _('Copier'),
|
'label' => _('Copy'),
|
||||||
'url' =>'create.php?LSobject='.$LSobject.'&load='.$searchData['objectList'][$i]['dn'],
|
'url' =>'create.php?LSobject='.$LSobject.'&load='.$searchData['objectList'][$i]['dn'],
|
||||||
'action' => 'copy'
|
'action' => 'copy'
|
||||||
);
|
);
|
||||||
|
@ -382,7 +382,7 @@ if(LSsession :: startLSsession()) {
|
||||||
|
|
||||||
if (LSsession :: canRemove($LSobject,$searchData['objectList'][$i]['dn'])) {
|
if (LSsession :: canRemove($LSobject,$searchData['objectList'][$i]['dn'])) {
|
||||||
$actions[] = array (
|
$actions[] = array (
|
||||||
'label' => _('Supprimer'),
|
'label' => _('Delete'),
|
||||||
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'],
|
||||||
'action' => 'delete'
|
'action' => 'delete'
|
||||||
);
|
);
|
||||||
|
@ -414,7 +414,7 @@ if(LSsession :: startLSsession()) {
|
||||||
return -1*$sense;
|
return -1*$sense;
|
||||||
}
|
}
|
||||||
if (!uasort($searchData['objectList'],'sortBy')) {
|
if (!uasort($searchData['objectList'],'sortBy')) {
|
||||||
LSdebug('Erreur durant le trie.');
|
LSdebug('Error while sorting.');
|
||||||
}
|
}
|
||||||
} // Fin Order by
|
} // Fin Order by
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list_orderby',$orderby);
|
$GLOBALS['Smarty']->assign('LSobject_list_orderby',$orderby);
|
||||||
|
@ -450,12 +450,12 @@ if(LSsession :: startLSsession()) {
|
||||||
'LSobject' => $LSobject
|
'LSobject' => $LSobject
|
||||||
));
|
));
|
||||||
|
|
||||||
$GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recherche récursive'));
|
$GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recursive search'));
|
||||||
$GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Recherche approximative'));
|
$GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Aproximative search'));
|
||||||
|
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list_without_result_label',_("Cette recherche n'a retourné aucun résultat."));
|
$GLOBALS['Smarty']->assign('LSobject_list_without_result_label',_("This search doesn't give any result."));
|
||||||
$GLOBALS['Smarty']->assign('_Actions',_('Actions'));
|
$GLOBALS['Smarty']->assign('_Actions',_('Actions'));
|
||||||
$GLOBALS['Smarty']->assign('_Modifier',_('Modifier'));
|
$GLOBALS['Smarty']->assign('_Modifier',_('Modify'));
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list',$searchData['objectList']);
|
$GLOBALS['Smarty']->assign('LSobject_list',$searchData['objectList']);
|
||||||
$GLOBALS['Smarty']->assign('LSobject_list_objecttype',$LSobject);
|
$GLOBALS['Smarty']->assign('LSobject_list_objecttype',$LSobject);
|
||||||
$GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']);
|
$GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']);
|
||||||
|
|
Loading…
Reference in a new issue