From 52ede7e6f74755ee4b270e50c1c5b0c15a75c3a7 Mon Sep 17 00:00:00 2001 From: Charles Videau Date: Thu, 12 Feb 2009 12:38:56 +0000 Subject: [PATCH] =?UTF-8?q?Premiere=20salve=20de=20traduction=20FR->EN=20(?= =?UTF-8?q?Note)=20Les=20passages=20d=C3=A9ja=20traduits=20sont=20ignor?= =?UTF-8?q?=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config.LSobjects.LSeecompany.php | 8 +-- .../LSobjects/config.LSobjects.LSeegroup.php | 14 ++-- .../LSobjects/config.LSobjects.LSeepeople.php | 72 +++++++++---------- trunk/conf/config.inc.php | 18 ++--- trunk/create.php | 4 +- trunk/includes/class/class.LSform.php | 12 ++-- trunk/includes/class/class.LSldapObject.php | 6 +- trunk/includes/class/class.LSsession.php | 36 +++++----- trunk/index.php | 2 +- trunk/index_ajax.php | 8 +-- trunk/modify.php | 10 +-- trunk/remove.php | 10 +-- trunk/select.php | 10 +-- trunk/view.php | 40 +++++------ 14 files changed, 125 insertions(+), 125 deletions(-) diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php b/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php index fd729028..3758a398 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php @@ -26,7 +26,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( 'lscompany' ), 'rdn' => 'ou', - 'orderby' => 'displayName', // Valeurs possibles : 'displayName' ou 'subDn' + 'orderby' => 'displayName', // possible cases : 'displayName' ou 'subDn' 'container_dn' => 'ou=companies', 'display_name_format' => '%{ou}', 'label' => _('Sociétés'), @@ -35,7 +35,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( /* ----------- start -----------*/ 'ou' => array ( - 'label' => _('Nom'), + 'label' => _('Name'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -75,7 +75,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Parrain(s)'), + 'label' => _('Father'), 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array( @@ -88,7 +88,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( array ( 'basedn' => '%{val}', 'result' => 1, - 'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.") + 'msg' => _("One or several of these users don't exist.") ) ), 'multiple' => 1, diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php b/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php index e31d279d..65138303 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php @@ -38,18 +38,18 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( ) ), 'display_name_format' => '%{cn}', - 'label' => _('Groupes'), + 'label' => _('Groups'), 'attrs' => array ( /* ----------- start -----------*/ 'cn' => array ( - 'label' => _('Nom'), + 'label' => _('Name'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'check_data' => array ( 'alphanumeric' => array( - 'msg' => _('Le nom ne doit comporter que des lettres et des chiffres.') + 'msg' => _('Name must contain alphanumeric values only.') ), ), 'validation' => array ( @@ -73,7 +73,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'gidNumber' => array ( - 'label' => _('Identifiant'), + 'label' => _('Id'), 'ldap_type' => 'numeric', 'html_type' => 'text', 'required' => 1, @@ -97,7 +97,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'uniqueMember' => array ( - 'label' => _('Membres'), + 'label' => _('Members'), 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array( @@ -151,7 +151,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Parrain(s)'), + 'label' => _('Father(s)'), 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array ( @@ -164,7 +164,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( array ( 'basedn' => '%{val}', 'result' => 1, - 'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.") + 'msg' => _("One or several of these users don't exist.") ) ), 'multiple' => 1, diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php b/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php index 04d1d017..0fff3652 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeepeople.php @@ -46,13 +46,13 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( //'after_create' => 'createMaildirByFTP', //'after_delete' => 'removeMaildirByFTP', 'display_name_format' => '%{cn}', - 'label' => _('Utilisateurs'), + 'label' => _('Users'), // LSrelation 'LSrelation' => array( 'groups' => array( - 'label' => _('Appartient aux groupes...'), - 'emptyText' => _("N'appartient à aucun groupe."), + 'label' => _('Belongs to groups ...'), + 'emptyText' => _("Doesn't belong to any group."), 'LSobject' => 'LSeegroup', 'list_function' => 'listUserGroups', 'getkeyvalue_function' => 'getMemberKeyValue', @@ -72,7 +72,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( // Layout 'layout' => array ( 'Civilite' => array( - 'label' => 'Civilité', + 'label' => 'Civility', 'img' => 1, 'args' => array ( 'uid', @@ -122,7 +122,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'uid' => array ( - 'label' => _('Identifiant'), + 'label' => _('Identifier'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'html_options' => array( @@ -135,7 +135,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( 'required' => 1, 'check_data' => 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-_\.]*$/') ), ), @@ -143,7 +143,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( array ( 'filter' => 'uid=%{val}', 'result' => 0, - 'msg' => _('Cet identifiant est déjà utilisé.') + 'msg' => _('This identifier is already used.') ) ), 'rights' => array( @@ -164,21 +164,21 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'uidNumber' => array ( - 'label' => _('Identifiant (numérique)'), + 'label' => _('Identifier (number)'), 'ldap_type' => 'numeric', 'html_type' => 'text', 'required' => 1, 'generate_function' => 'generate_uidNumber', 'check_data' => array ( 'numeric' => array( - 'msg' => _("L'identifiant unique doit être un entier.") + 'msg' => _("The unique identifier must be an integer.") ), ), 'validation' => array ( array ( 'filter' => 'uidNumber=%{val}', 'result' => 0, - 'msg' => _('Cet uid est déjà utilisé.') + 'msg' => _('This uid is already used.') ) ), 'rights' => array( @@ -193,14 +193,14 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'givenName' => array ( - 'label' => _('Prenom'), + 'label' => _('First Name'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'default_value' => 'toto', 'check_data' => 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( @@ -220,7 +220,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sn' => array ( - 'label' => _('Nom'), + 'label' => _('Last Name'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -240,7 +240,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'cn' => array ( - 'label' => _('Nom complet'), + 'label' => _('Full Name'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'html_options' => array( @@ -266,7 +266,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'gidNumber' => array ( - 'label' => _('Groupe principal'), + 'label' => _('Main group'), 'ldap_type' => 'numeric', 'html_type' => 'select_list', 'html_options' => array ( @@ -293,7 +293,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( 'required' => 1, 'validation' => 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 //'basedn' => 'o=company', // et d'utiliser les objectClass définis dans le fichier de configuration 'filter' => '(gidNumber=%{val})', // pour la recherche @@ -314,8 +314,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'loginShell' => array ( - 'label' => _('Interpreteur de commande'), - 'help_info' => _("Permet ou non a l'utilisateur de se connecter à un système POSIX."), + 'label' => _('Command shell'), + 'help_info' => _("Allow user to connect a POSIX system."), 'ldap_type' => 'boolean', 'ldap_options' => array ( 'true_value' => '/bin/bash', @@ -337,7 +337,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sambaSID' => array ( - 'label' => _('Identifiant Samba'), + 'label' => _('Samba Identifier'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -353,7 +353,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'homeDirectory' => array ( - 'label' => _('Répertoire personnel'), + 'label' => _('Self Directory'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -367,7 +367,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'mail' => array ( - 'label' => _('Adresse e-mail'), + 'label' => _('E-mail address'), 'ldap_type' => 'ascii', 'html_type' => 'mail', 'html_options' => array( @@ -379,7 +379,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( 'required' => 1, 'check_data' => array ( 'email' => array( - 'msg' => _("L'adresse e-mail entrée n'est pas valide."), + 'msg' => _("Given email address is invalid."), 'params' => array('checkDomain' => false) ), ), @@ -399,7 +399,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'personalTitle' => array ( - 'label' => _('Titre'), + 'label' => _('Civility'), 'ldap_type' => 'ascii', 'html_type' => 'select_list', 'html_options' => array ( @@ -447,7 +447,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'userPassword' => array ( - 'label' => _('Mot de passe'), + 'label' => _('Password'), 'ldap_type' => 'password', 'ldap_options' => array ( 'encode' => 'md5' @@ -468,14 +468,14 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( 'mail' => array( 'send' => 1, 'ask' => 1, - 'subject' => "LSexample : votre nouveau mot de passe", - 'msg' => "Votre mot de passe vient d'etre modifie.\nNouveau mot de passe : %{mdp}", + 'subject' => "LSexample : Your new credentials", + 'msg' => "Your password has been changed.\nNew password : %{mdp}", 'mail_attr' => 'mail' ) ), 'check_data' => 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( 'minLength' => 8, 'maxLength' => 10 @@ -502,7 +502,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'lsRecoveryHash' => array ( - 'label' => _('Hash de recouvrement du mot de passe'), + 'label' => _('Password recovery hash'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 0, @@ -518,7 +518,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sambaLMPassword' => array ( - 'label' => _('Mot de passe Samba (LM)'), + 'label' => _('Samba Password (LM)'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -531,7 +531,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sambaNTPassword' => array ( - 'label' => _('Mot de passe Samba (NT)'), + 'label' => _('Samba Password (NT)'), 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -544,26 +544,26 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'jpegPhoto' => array ( - 'label' => _('Photo'), + 'label' => _('Picture'), 'ldap_type' => 'image', 'html_type' => 'image', 'required' => 0, 'view' => 0, 'check_data' => array ( 'imagesize' => array( - 'msg' => _("La taille de l'image n'est pas valide."), + 'msg' => _("Picture size is not valid."), 'params' => array( 'maxWidth' => 2000 ) ), 'imagefilesize' => array( - 'msg' => _("La taille du fichier image n'est pas valide."), + 'msg' => _("File size is not valid."), 'params' => array( 'maxSize' => 3000000 // taille du fichier en octets ) ), 'imagefile' => array( - 'msg' => _("Le type du fichier n'est pas valide.") + 'msg' => _("File type is not valid.") ) ), 'form' => array ( @@ -580,7 +580,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Parrain(s)'), + 'label' => _('Father(s)'), 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array ( @@ -593,7 +593,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( array ( 'basedn' => '%{val}', 'result' => 1, - 'msg' => _("Un ou plusieurs de ces utilisateurs n'existent pas.") + 'msg' => _("One or several users don't exist.") ) ), 'multiple' => 1, diff --git a/trunk/conf/config.inc.php b/trunk/conf/config.inc.php index c3b43cd8..7e0b1c36 100644 --- a/trunk/conf/config.inc.php +++ b/trunk/conf/config.inc.php @@ -81,12 +81,12 @@ $GLOBALS['LSconfig'] = array( 'recoveryHashAttr' => 'lsRecoveryHash', 'recoveryEmailSender' => 'noreply-recover@ls.com', 'recoveryHashMail' => array( - 'subject' => 'LSexample : Récupération de votre mot de passe.', - '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}" + 'subject' => 'LSexample : Recovering your password.', + 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}" ), 'newPasswordMail' => array( - 'subject' => 'LSexample : Votre nouveau mot de passe.', - 'msg' => "Votre nouveau mot de passe : %{mdp}" + 'subject' => 'LSexample : Your new credentials', + 'msg' => "Your new password : %{mdp}" ) ), 'emailSender' => 'noreply@ls.com' @@ -117,7 +117,7 @@ $GLOBALS['LSconfig'] = array( ) ), 'authObjectType' => 'LSeepeople', - 'subDnLabel' => _('Société'), + 'subDnLabel' => _('Company'), 'subDn' => array( '== Toutes ==' => array( 'dn' => 'o=ls', @@ -144,12 +144,12 @@ $GLOBALS['LSconfig'] = array( 'recoveryHashAttr' => 'lsRecoveryHash', 'recoveryEmailSender' => 'noreply-recover@lsexample.net', 'recoveryHashMail' => array( - 'subject' => 'LSexample : Récupération de votre mot de passe.', - '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}" + 'subject' => 'LSexample : Recovering your password.', + 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}" ), 'newPasswordMail' => array( - 'subject' => 'LSexample : Votre nouveau mot de passe.', - 'msg' => "Votre nouveau mot de passe : %{mdp}" + 'subject' => 'LSexample : Your new credentials.', + 'msg' => "Your new password : %{mdp}" ) ), 'emailSender' => 'noreply@lsexample.net' diff --git a/trunk/create.php b/trunk/create.php index d8ce82ad..5575ac92 100644 --- a/trunk/create.php +++ b/trunk/create.php @@ -47,7 +47,7 @@ if(LSsession :: startLSsession()) { // Data update for LDAP object if ($object -> updateData('create')) { if (!LSerror::errorsDefined()) { - LSsession :: addInfo(_("L'objet a bien été ajouté.")); + LSsession :: addInfo(_("Object has been added.")); } if (isset($_REQUEST['ajax'])) { LSsession :: displayAjaxReturn ( @@ -86,7 +86,7 @@ if(LSsession :: startLSsession()) { exit(); } // Define page title - $GLOBALS['Smarty'] -> assign('pagetitle',_('Nouveau').' : '.$object -> getLabel()); + $GLOBALS['Smarty'] -> assign('pagetitle',_('New').' : '.$object -> getLabel()); LSsession :: setTemplate('create.tpl'); $form -> display(); } diff --git a/trunk/includes/class/class.LSform.php b/trunk/includes/class/class.LSform.php index f3e6fcc1..97549aac 100644 --- a/trunk/includes/class/class.LSform.php +++ b/trunk/includes/class/class.LSform.php @@ -85,8 +85,8 @@ class LSform { LSsession :: addHelpInfos( 'LSform', array( - 'addFieldBtn' => _('Ajouter un champ pour saisir une autre valeur.'), - 'removeFieldBtn' => _('Supprimer ce champ.') + 'addFieldBtn' => _('Add a field to add another values.'), + 'removeFieldBtn' => _('Delete this field.') ) ); @@ -154,7 +154,7 @@ class LSform { 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_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()); } 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; } @@ -227,7 +227,7 @@ class LSform { if (!$this -> checkData()) { return; } - LSdebug("les données sont checkées"); + LSdebug("Data are checked up"); $this -> _isValidate = true; return true; } @@ -249,7 +249,7 @@ class LSform { } if ($this -> elements[$element] -> isRequired()) { if (!$this -> checkRequired($values)) { - $this -> setElementError($this -> elements[$element],_("Champ obligatoire")); + $this -> setElementError($this -> elements[$element],_("Mandatory field")); $retval=false; } } diff --git a/trunk/includes/class/class.LSldapObject.php b/trunk/includes/class/class.LSldapObject.php index 084bdeef..70fc613b 100644 --- a/trunk/includes/class/class.LSldapObject.php +++ b/trunk/includes/class/class.LSldapObject.php @@ -433,7 +433,7 @@ class LSldapObject { $msg_error=getFData($test['msg'],$this,'getValue'); } 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) { // validation par check LDAP @@ -1695,13 +1695,13 @@ class LSldapObject { * Error Codes **/ LSerror :: defineError('LSldapObject_01', -_("LSldapObject : Object type unknow.") +_("LSldapObject : Object type unknown.") ); LSerror :: defineError('LSldapObject_02', _("LSldapObject : Update form is not defined for the object %{obj}.") ); LSerror :: defineError('LSldapObject_03', -_("LSldapObject : No form exist for the object %{obj}.") +_("LSldapObject : No form exists for the object %{obj}.") ); LSerror :: defineError('LSldapObject_04', _("LSldapObject : The function %{func} to validate the attribute %{attr} the object %{obj} is unknow.") diff --git a/trunk/includes/class/class.LSsession.php b/trunk/includes/class/class.LSsession.php index 1888bc5a..446cdc7b 100644 --- a/trunk/includes/class/class.LSsession.php +++ b/trunk/includes/class/class.LSsession.php @@ -838,7 +838,7 @@ class LSsession { * @retval void */ public static function displayLoginForm() { - $GLOBALS['Smarty'] -> assign('pagetitle',_('Connexion')); + $GLOBALS['Smarty'] -> assign('pagetitle',_('Connection')); if (isset($_GET['LSsession_logout'])) { $GLOBALS['Smarty'] -> assign('loginform_action','index.php'); } @@ -848,7 +848,7 @@ class LSsession { if (count($GLOBALS['LSconfig']['ldap_servers'])==1) { $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_index=array(); 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_label_level',_('Niveau')); - $GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifiant')); - $GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Mot de passe')); - $GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connexion')); - $GLOBALS['Smarty'] -> assign('loginform_label_recoverPassword',_('Mot de passe oublié ?')); + $GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifier')); + $GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Password')); + $GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connect')); + $GLOBALS['Smarty'] -> assign('loginform_label_recoverPassword',_('Forgot your password ?')); self :: setTemplate('login.tpl'); self :: addJSscript('LSsession_login.js'); @@ -880,14 +880,14 @@ class LSsession { * @retval void */ 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'); if (count($GLOBALS['LSconfig']['ldap_servers'])==1) { $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_index=array(); 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_index',$ldapservers_index); - $GLOBALS['Smarty'] -> assign('recoverpasswordform_label_user',_('Identifiant')); - $GLOBALS['Smarty'] -> assign('recoverpasswordform_label_submit',_('Valider')); - $GLOBALS['Smarty'] -> assign('recoverpasswordform_label_back',_('Retour')); + $GLOBALS['Smarty'] -> assign('recoverpasswordform_label_user',_('Identifier')); + $GLOBALS['Smarty'] -> assign('recoverpasswordform_label_submit',_('Valid')); + $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'])) { $recoverpassword_msg = getFData( - _("Un mail vient de vous être envoyé à l'adresse %{mail}. " . - "Merci de suivre les indications contenus dans ce mail."), + _("An email has been sent to %{mail}. " . + "Please follow the instructions on it."), $recoveryPasswordInfos['recoveryHashMail'] ); } if (isset($recoveryPasswordInfos['newPasswordMail'])) { $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'] ); } @@ -1039,7 +1039,7 @@ class LSsession { if (is_array($listTopDn)) { asort($listTopDn); $GLOBALS['Smarty'] -> assign('label_level',self :: getSubDnLabel()); - $GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir')); + $GLOBALS['Smarty'] -> assign('_refresh',_('Refresh')); $LSsession_topDn_index = array(); $LSsession_topDn_name = array(); foreach($listTopDn as $index => $name) { @@ -1301,7 +1301,7 @@ class LSsession { foreach($LSaccess as $dn => $access) { $LSaccess[$dn] = array_merge( array( - 'SELF' => _('Mon compte') + 'SELF' => _('My account') ), $access ); @@ -1664,7 +1664,7 @@ class LSsession { * @retval string Le label des niveaux pour le serveur ldap dourant */ public static function getSubDnLabel() { - return (self :: $ldapServer['subDnLabel']!='')?self :: $ldapServer['subDnLabel']:_('Niveau'); + return (self :: $ldapServer['subDnLabel']!='')?self :: $ldapServer['subDnLabel']:_('Level'); } /** diff --git a/trunk/index.php b/trunk/index.php index bfbf3ac3..a00348f6 100644 --- a/trunk/index.php +++ b/trunk/index.php @@ -25,7 +25,7 @@ require_once 'includes/class/class.LSsession.php'; if(LSsession :: startLSsession()) { // Définition du Titre de la page - $GLOBALS['Smarty'] -> assign('pagetitle',_('Accueil')); + $GLOBALS['Smarty'] -> assign('pagetitle',_('Home')); // Template LSsession :: setTemplate('accueil.tpl'); diff --git a/trunk/index_ajax.php b/trunk/index_ajax.php index 91a576d5..ba449d02 100644 --- a/trunk/index_ajax.php +++ b/trunk/index_ajax.php @@ -205,7 +205,7 @@ if (!isset($_ERRORS)) { $data['html'] = "
  • ".$relationConf['emptyText']."
  • \n"; } else { - $data['html'] = "
  • "._('Aucun objet en relation.')."
  • \n"; + $data['html'] = "
  • "._('No object.')."
  • \n"; } } $data['id'] = $_REQUEST['id']; @@ -377,8 +377,8 @@ if (!isset($_ERRORS)) { else if(empty($_REQUEST['mails'])) { $GLOBALS['Smarty'] -> assign('LSmail_mails',array($_REQUEST['mails'])); } - $GLOBALS['Smarty'] -> assign('LSmail_mail_label',_('E-mail')); - $GLOBALS['Smarty'] -> assign('LSmail_subject_label',_('Sujet')); + $GLOBALS['Smarty'] -> assign('LSmail_mail_label',_('Email')); + $GLOBALS['Smarty'] -> assign('LSmail_subject_label',_('Title')); $GLOBALS['Smarty'] -> assign('LSmail_msg_label',_('Message')); $data = array( @@ -390,7 +390,7 @@ if (!isset($_ERRORS)) { if (LSsession ::loadLSaddon('mail')) { if(sendMail($_REQUEST['infos']['mail'],$_REQUEST['infos']['subject'],$_REQUEST['infos']['msg'])) { $data = array( - 'msgok' => _("Votre message a bien été envoyé.") + 'msgok' => _("Your message has been sent successfully.") ); } } diff --git a/trunk/modify.php b/trunk/modify.php index d7b45328..1cf7108f 100644 --- a/trunk/modify.php +++ b/trunk/modify.php @@ -45,16 +45,16 @@ if(LSsession :: startLSsession()) { $object = new $LSobject(); if ($object -> loadData($dn)) { // 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'); if ($form->validate()) { // MàJ des données de l'objet LDAP if ($object -> updateData('modify')) { if (LSerror::errorsDefined()) { - LSsession :: addInfo(_("L'objet a été modifié partiellement.")); + LSsession :: addInfo(_("The object has been partially modified.")); } else { - LSsession :: addInfo(_("L'objet a bien été modifié.")); + LSsession :: addInfo(_("The object has been modified successfully.")); } if (isset($_REQUEST['ajax'])) { LSsession :: displayAjaxReturn ( @@ -95,14 +95,14 @@ if(LSsession :: startLSsession()) { } else { $LSview_actions[] = array( - 'label' => _('Voir'), + 'label' => _('Check'), 'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(), 'action' => 'view' ); if (LSsession :: canRemove($LSobject,$object -> getDn())) { $LSview_actions[] = array( - 'label' => _('Supprimer'), + 'label' => _('Delete'), 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(), 'action' => 'delete' ); diff --git a/trunk/remove.php b/trunk/remove.php index 9f3d0c7a..936d21e4 100644 --- a/trunk/remove.php +++ b/trunk/remove.php @@ -32,9 +32,9 @@ if(LSsession :: startLSsession()) { if ($object -> loadData($_GET['dn'])) { if (isset($_GET['valid'])) { $objectname=$object -> getDisplayName(); - $GLOBALS['Smarty'] -> assign('pagetitle',_('Suppression').' : '.$objectname); + $GLOBALS['Smarty'] -> assign('pagetitle',_('Deleting').' : '.$objectname); 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'); } else { @@ -43,10 +43,10 @@ if(LSsession :: startLSsession()) { } else { // Définition du Titre de la page - $GLOBALS['Smarty'] -> assign('pagetitle',_('Suppresion').' : '.$object -> getDisplayName()); - $GLOBALS['Smarty'] -> assign('question',_('Voulez-vous vraiment supprimer').' '.$object -> getDisplayName().' ?'); + $GLOBALS['Smarty'] -> assign('pagetitle',_('Deleting').' : '.$object -> getDisplayName()); + $GLOBALS['Smarty'] -> assign('question',_('To you really want to delete').' '.$object -> getDisplayName().' ?'); $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'); } diff --git a/trunk/select.php b/trunk/select.php index b9ba1120..73f55037 100644 --- a/trunk/select.php +++ b/trunk/select.php @@ -183,7 +183,7 @@ if(LSsession :: startLSsession()) { else { LSdebug('Load'); $LSview_actions[] = array ( - 'label' => _('Rafraîchir'), + 'label' => _('Refresh'), 'url' => 'view.php?LSobject='.$LSobject.'&refresh', 'action' => 'refresh' ); @@ -289,14 +289,14 @@ if(LSsession :: startLSsession()) { $GLOBALS['Smarty']->assign('LSview_search',array( 'action' => $_SERVER['PHP_SELF'], - 'submit' => _('Rechercher'), + 'submit' => _('Search'), 'LSobject' => $LSobject )); - $GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recherche récursive')); - $GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Recherche approximative')); + $GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recursive search')); + $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_objecttype',$LSobject); $GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']); diff --git a/trunk/view.php b/trunk/view.php index ef269bb8..f7e4529f 100644 --- a/trunk/view.php +++ b/trunk/view.php @@ -40,7 +40,7 @@ if(LSsession :: startLSsession()) { if (LSsession :: canAccess($LSobject,$dn)) { if ( LSsession :: canEdit($LSobject,$dn) ) { $LSview_actions[] = array( - 'label' => _('Modifier'), + 'label' => _('Modify'), 'url' =>'modify.php?LSobject='.$LSobject.'&dn='.$dn, 'action' => 'modify' ); @@ -48,7 +48,7 @@ if(LSsession :: startLSsession()) { if (LSsession :: canCreate($LSobject)) { $LSview_actions[] = array( - 'label' => _('Copier'), + 'label' => _('Copy'), 'url' =>'create.php?LSobject='.$LSobject.'&load='.$dn, 'action' => 'copy' ); @@ -56,7 +56,7 @@ if(LSsession :: startLSsession()) { if (LSsession :: canRemove($LSobject,$dn)) { $LSview_actions[] = array( - 'label' => _('Supprimer'), + 'label' => _('Delete'), 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$dn, 'action' => 'delete' ); @@ -69,7 +69,7 @@ if(LSsession :: startLSsession()) { } else { $object = LSsession :: getLSuserObject(); - $GLOBALS['Smarty'] -> assign('pagetitle',_('Mon compte')); + $GLOBALS['Smarty'] -> assign('pagetitle',_('My account')); } $view = $object -> getView(); @@ -90,7 +90,7 @@ if(LSsession :: startLSsession()) { $return['emptyText'] = $relationConf['emptyText']; } else { - $return['emptyText'] = _('Aucun objet en relation.'); + $return['emptyText'] = _('No object.'); } $id=rand(); @@ -105,7 +105,7 @@ if(LSsession :: startLSsession()) { ); if (LSsession :: relationCanEdit($object -> getValue('dn'),$LSobject,$relationName)) { $return['actions'][] = array( - 'label' => _('Modifier'), + 'label' => _('Modify'), 'url' => 'select.php?LSobject='.$relationConf['LSobject'].'&multiple=1', 'action' => 'modify' ); @@ -289,12 +289,12 @@ if(LSsession :: startLSsession()) { if ((LSsession :: cacheSearch()) && isset($_SESSION['LSsession']['LSsearch'][$hash]) && (!isset($_REQUEST['refresh']))) { // On affiche à partir du cache $searchData=$_SESSION['LSsession']['LSsearch'][$hash]; - LSdebug('Recherche : From cache'); + LSdebug('Find : From cache'); if(!isset($searchData['LSview_actions']['create'])) { LSdebug('Recherche : Check Create()'); if (LSsession :: canCreate($LSobject)) { $searchData['LSview_actions']['create'] = array ( - 'label' => _('Nouveau'), + 'label' => _('New'), 'url' => 'create.php?LSobject='.$LSobject, 'action' => 'create' ); @@ -306,10 +306,10 @@ if(LSsession :: startLSsession()) { } } else { // Load - LSdebug('Recherche : Load'); + LSdebug('Find : Load'); if (LSsession :: canCreate($LSobject)) { $LSview_actions['create'] = array ( - 'label' => _('Nouveau'), + 'label' => _('New'), 'url' => 'create.php?LSobject='.$LSobject, 'action' => 'create' ); @@ -319,7 +319,7 @@ if(LSsession :: startLSsession()) { $LSview_actions['create'] = false; } $LSview_actions['refresh'] = array ( - 'label' => _('Rafraîchir'), + 'label' => _('Refresh'), 'url' => 'view.php?LSobject='.$LSobject.'&refresh', 'action' => 'refresh' ); @@ -359,14 +359,14 @@ if(LSsession :: startLSsession()) { $actions=array(); $actions[] = array( - 'label' => _('Voir'), + 'label' => _('Check'), 'url' =>'view.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'], 'action' => 'view' ); if (LSsession :: canEdit($LSobject,$searchData['objectList'][$i]['dn'])) { $actions[]=array( - 'label' => _('Modifier'), + 'label' => _('Modify'), 'url' => 'modify.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'], 'action' => 'modify' ); @@ -374,7 +374,7 @@ if(LSsession :: startLSsession()) { if ($canCopy) { $actions[] = array( - 'label' => _('Copier'), + 'label' => _('Copy'), 'url' =>'create.php?LSobject='.$LSobject.'&load='.$searchData['objectList'][$i]['dn'], 'action' => 'copy' ); @@ -382,7 +382,7 @@ if(LSsession :: startLSsession()) { if (LSsession :: canRemove($LSobject,$searchData['objectList'][$i]['dn'])) { $actions[] = array ( - 'label' => _('Supprimer'), + 'label' => _('Delete'), 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$searchData['objectList'][$i]['dn'], 'action' => 'delete' ); @@ -414,7 +414,7 @@ if(LSsession :: startLSsession()) { return -1*$sense; } if (!uasort($searchData['objectList'],'sortBy')) { - LSdebug('Erreur durant le trie.'); + LSdebug('Error while sorting.'); } } // Fin Order by $GLOBALS['Smarty']->assign('LSobject_list_orderby',$orderby); @@ -450,12 +450,12 @@ if(LSsession :: startLSsession()) { 'LSobject' => $LSobject )); - $GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recherche récursive')); - $GLOBALS['Smarty']->assign('LSview_search_approx_label',_('Recherche approximative')); + $GLOBALS['Smarty']->assign('LSview_search_recur_label',_('Recursive search')); + $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('_Modifier',_('Modifier')); + $GLOBALS['Smarty']->assign('_Modifier',_('Modify')); $GLOBALS['Smarty']->assign('LSobject_list',$searchData['objectList']); $GLOBALS['Smarty']->assign('LSobject_list_objecttype',$LSobject); $GLOBALS['Smarty'] -> assign('LSview_actions',$searchData['LSview_actions']);