From d8975aff0b6a9ba67580351b08d3a0940beb4fbb Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 19 Mar 2009 17:42:51 +0000 Subject: [PATCH] =?UTF-8?q?-=20functions=20:=20=20=20->=20Ajout=20de=20la?= =?UTF-8?q?=20fonction=20=5F=5F()=20:=20fonction=20de=20traduction=20utili?= =?UTF-8?q?sant=20=C3=A0=20la=20fois=20le=20tableau=20globale=20LSlang=20?= =?UTF-8?q?=20=20=20=20=20et=20gettext=20pour=20traduire=20les=20messages?= =?UTF-8?q?=20qu'on=20lui=20passe.=20=20=20->=20Ajout=20de=20la=20fonction?= =?UTF-8?q?=20tr()=20:=20fonction=20utilisable=20depuis=20les=20templates?= =?UTF-8?q?=20pour=20traduire=20une=20variable=20=20=20=20=20=20smarty.=20?= =?UTF-8?q?-=20LSexample=20:=20=20=20->=20Utilisation=20de=20la=20traducti?= =?UTF-8?q?on=20via=20=5F=5F()=20plut=C3=B4t=20que=20gettext=20-=20LSdefau?= =?UTF-8?q?lt=20:=20=20=20->=20Creation=20d'un=20template=20pour=20la=20ge?= =?UTF-8?q?stion=20des=20outils=20apport=C3=A9=20par=20LSdefaut=20(LSerror?= =?UTF-8?q?,=20LSdebug,=20...)=20=20=20->=20Ajout=20de=20m=C3=A9thode=20de?= =?UTF-8?q?=20gestion=20de=20LSlang=20-=20LSsession=20:=20=20=20-=20Login/?= =?UTF-8?q?RecoverPassword=20:=20Utilisation=20du=20template=20LSdefault?= =?UTF-8?q?=20=20=20-=20Gestion=20de=20la=20traduction=20:=20=20=20=20=20-?= =?UTF-8?q?>=20Ajout=20de=20la=20m=C3=A9thode=20setLocale()=20d=C3=A9finis?= =?UTF-8?q?sant=20la=20langue=20de=20l'interface.=20=20=20=20=20=20=20->?= =?UTF-8?q?=20Ajout=20des=20m=C3=A9thodes=20getLangList()=20et=20localeExi?= =?UTF-8?q?st()=20=20=20=20=20->=20Le=20session=5Fstart()=20se=20fait=20da?= =?UTF-8?q?ns=20l'initialize=20d=C3=A9sormais=20(pour=20g=C3=A9rer=20la=20?= =?UTF-8?q?langue=20m=C3=AAme=20d=C3=A9connect=C3=A9)=20=20=20=20=20->=20M?= =?UTF-8?q?=C3=A9thode=20setLdapServer()=20:=20r=C3=A9difinition=20de=20la?= =?UTF-8?q?=20locale=20avec=20setLocale()=20=20=20=20=20->=20Ajout=20de=20?= =?UTF-8?q?LSlang=20:=20outil=20JS=20permetant=20dans=20l'interface=20de?= =?UTF-8?q?=20choisir=20sa=20langue=20-=20Config=20:=20=20=20->=20De=20man?= =?UTF-8?q?i=C3=A8re=20g=C3=A9n=C3=A9ral,=20il=20ne=20doit=20plus=20y=20av?= =?UTF-8?q?oir=20d'appel=20de=20la=20fonction=20=5F()=20dans=20les=20fichi?= =?UTF-8?q?ers=20de=20config,=20les=20=20=20=20=20=20cha=C3=AEnes=20sont?= =?UTF-8?q?=20donn=C3=A9es=20non=20traduite,=20et=20la=20traduction=20se?= =?UTF-8?q?=20fera=20lors=20de=20leur=20utilisation.=20=20=20=20=20->=20To?= =?UTF-8?q?ut=20les=20labels=20et=20messages=20d=C3=A9clarer=20dans=20la?= =?UTF-8?q?=20config,=20est=20maintenant=20traduit=20du=20cot=C3=A9=20code?= =?UTF-8?q?=20PHP=20avec=20la=20=20=20=20=20=20=20=20fonction=20=5F=5F()?= =?UTF-8?q?=20=20=20->=20L'enconding=20et=20la=20langue=20sont=20d=C3=A9so?= =?UTF-8?q?rmais=20g=C3=A9r=C3=A9=20ind=C3=A9pendament=20-=20ViewList=20:?= =?UTF-8?q?=20Les=20noms=20des=20boutons=20(New,Refresh,...)=20ne=20sont?= =?UTF-8?q?=20plus=20traduit=20du=20c=C3=B4t=C3=A9=20PHP=20mais=20dans=20l?= =?UTF-8?q?e=20template=20=C3=A0=20=20=20cause=20de=20leur=20mise=20en=20c?= =?UTF-8?q?ache.=20-=20Documentation=20:=20=20=20->=20Mise=20=C3=A0=20jour?= =?UTF-8?q?=20relative=20en=20changement=20de=20param=C3=A8tres=20de=20con?= =?UTF-8?q?figuration=20=20=20->=20Ajout=20des=20informations=20sur=20les?= =?UTF-8?q?=20variables=20et=20constantes=20ind=C3=A9pendantes=20du=20fich?= =?UTF-8?q?ier=20de=20configuration=20config.inc.php=20=20=20->=20Mise=20?= =?UTF-8?q?=C3=A0=20jour=20du=20fichier=20INSTALL=20avec=20les=20informati?= =?UTF-8?q?ons=20de=20la=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/LS.entities.xml | 1 + doc/conf/globale.docbook | 195 ++++++++++++- doc/install/install.docbook | 2 +- trunk/INSTALL | 115 +++++++- .../config.LSobjects.LSeecompany.php | 10 +- .../LSobjects/config.LSobjects.LSeegroup.php | 16 +- .../LSobjects/config.LSobjects.LSeepeople.php | 68 ++--- trunk/conf/config.inc.php | 18 +- trunk/css/default/LSdefault.css | 13 + trunk/images/default/en_US.png | Bin 0 -> 609 bytes trunk/images/default/fr_FR.png | Bin 0 -> 545 bytes trunk/includes/class/class.LSattr_html.php | 4 +- trunk/includes/class/class.LSattribute.php | 8 +- trunk/includes/class/class.LSformElement.php | 6 +- trunk/includes/class/class.LSldapObject.php | 2 +- trunk/includes/class/class.LSrelation.php | 2 +- trunk/includes/class/class.LSsession.php | 128 ++++++++- trunk/includes/functions.php | 17 ++ trunk/includes/js/LSdefault.js | 38 +++ .../lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo | Bin 28323 -> 25685 bytes .../lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po | 259 ++++------------- trunk/lang/fr_FR.UTF8/lang.php | 119 ++++++++ trunk/lang/ldapsaisie.pot | 271 ++++-------------- trunk/templates/default/LSdefault.tpl | 20 ++ trunk/templates/default/LSform_view.tpl | 2 +- trunk/templates/default/login.tpl | 12 +- trunk/templates/default/recoverpassword.tpl | 13 +- trunk/templates/default/top.tpl | 17 +- trunk/templates/default/viewList.tpl | 2 +- trunk/view.php | 6 +- 30 files changed, 824 insertions(+), 540 deletions(-) create mode 100755 trunk/images/default/en_US.png create mode 100755 trunk/images/default/fr_FR.png create mode 100644 trunk/lang/fr_FR.UTF8/lang.php create mode 100644 trunk/templates/default/LSdefault.tpl diff --git a/doc/LS.entities.xml b/doc/LS.entities.xml index 05e1a73c..8edeb0bb 100644 --- a/doc/LS.entities.xml +++ b/doc/LS.entities.xml @@ -21,3 +21,4 @@ LSformats"> LSaddon"> LSaddons"> +LSselect"> diff --git a/doc/conf/globale.docbook b/doc/conf/globale.docbook index f60c1c7c..f0907273 100644 --- a/doc/conf/globale.docbook +++ b/doc/conf/globale.docbook @@ -13,10 +13,13 @@ $GLOBALS['LSconfig'] = array( // Variables globales ); -// Autres variables indépendantes +// Variables et constantes indépendantes $var1 = 'val1' $var2 = 'val2' ... +define('CONST1','val1') +define('CONST2','val2') +... ?>]]> @@ -51,9 +54,20 @@ $var2 = 'val2' lang - Paramètre utilisé pour l'internationalisation. + Paramètre utilisé pour l'internationalisation : code de la langue. - + + + + + + + + encoding + + Encodage de caractère. + + @@ -128,6 +142,181 @@ $var2 = 'val2' + +Variables et constantes indépendantes + + + + + + LS_THEME + + Constante déterminant le nom du theme utilisé. + Valeur par défaut : default + + + + + LS_TEMPLATES_DIR + + Constante déterminant le chemin du dossier des templates. + Valeur par défaut : templates/LS_THEME + + + + + LS_IMAGES_DIR + + Constante déterminant le chemin du dossier des images. + Valeur par défaut : images/LS_THEME + + + + + LS_CSS_DIR + + Constante déterminant le chemin du dossier des CSS. + Valeur par défaut : css/LS_THEME + + + + + $GLOBALS['LSdebug']['active'] + + Variable booléenne déterminant si le mode debug est activé. + + + + + $GLOBALS['LSlog']['enable'] + + Variable booléenne déterminant si les logs sont activés. + + + + + $GLOBALS['LSlog']['filename'] + + Variable déterminant le chemin du fichier de log. + Valeur par défaut : /tmp/LS.log + + + + + NB_LSOBJECT_LIST + + Constante déterminant le nombre d'objet affichés par page de résultat + de recherche. + + + + + NB_LSOBJECT_LIST_SELECT + + Constante déterminant le nombre d'objet affichés par page de résultat + de recherche dans une fenêtre &LSselect;. + + + + + MAX_SEND_FILE_SIZE + + Constante déterminant la taille maximale d'un fichier envoyé à travers + les formulaires. + + + + + LS_CONF_DIR + + Constante déterminant le chemin du dossier de configuration. + Valeur par défaut : conf/ + + + + + LS_OBJECTS_DIR + + Constante déterminant le chemin du dossier de configuration. + Valeur par défaut : LS_CONF_DIR/LSobjects/ + + + + + LS_INCLUDE_DIR + + Constante déterminant le chemin du dossier d'inclusion. + Valeur par défaut : includes/ + + + + + LS_CLASS_DIR + + Constante déterminant le chemin du dossier d'inclusion des classes. + Valeur par défaut : LS_INCLUDE_DIR/class/ + + + + + LS_LIB_DIR + + Constante déterminant le chemin du dossier d'inclusion des librairies. + Valeur par défaut : LS_INCLUDE_DIR/libs/ + + + + + LS_ADDONS_DIR + + Constante déterminant le chemin du dossier d'inclusion des addons. + Valeur par défaut : LS_INCLUDE_DIR/addons/ + + + + + LS_JS_DIR + + Constante déterminant le chemin du dossier d'inclusion du JavaScript. + Valeur par défaut : LS_INCLUDE_DIR/js/ + + + + + LS_TMP_DIR + + Constante déterminant le chemin du dossier des fichiers temporaires. + Valeur par défaut : tmp/ + + + + + $GLOBALS['defaultJSscipts'] + + Tableau déterminant les fichiers CSS à charger sur toute les pages. + + + + + LS_TEXT_DOMAIN + + Constante déterminant le domaine gettext utilisé par le projet. + Valeur par défaut : ldapsaisie + + + + + LS_I18N_DIR + + Constante déterminant chemin du dossier d'internationalisation. + Valeur par défaut : lang + + + + + + + &conf-LSformat; &conf-LDAP_search_params; diff --git a/doc/install/install.docbook b/doc/install/install.docbook index ff41a96c..ab4c8529 100644 --- a/doc/install/install.docbook +++ b/doc/install/install.docbook @@ -60,7 +60,7 @@ Plus de détails Configuration globale : Cette partie est principalement - contenue dans le fichier conf/config.inc.php.Il s'agit en + contenue dans le fichier conf/config.inc.php. Il s'agit en particulier de configurer la connexion à votre annuaire. Pour plus de détails, reportez-vous à la section concernée. diff --git a/trunk/INSTALL b/trunk/INSTALL index b1c626d3..98834b71 100644 --- a/trunk/INSTALL +++ b/trunk/INSTALL @@ -1,6 +1,109 @@ -Pré-requis : - - Php 5 : magic_quotes_gpc = off - - php5-mhash - - Net_LDAP2 (http://pear.php.net/package/Net_LDAP2) - - Smarty (http://www.smarty.net/) - - tmp/ et template_c/ en ecriture + INSTALLATION +=================== + +1. Pré-requis +============= + + * PHP 5 avec magic_quotes_gpc à off + * Le support LDAP dans PHP (paquet php5-ldap dans Debian) + * Le support mhash dans PHP (paquet php5-mash dans Debian) + * Net_LDAP2 + * Smarty + * L'utisateur exécutant le serveur web doit avoir les droits d'écriture sur le dossier 'tmp'. + +[Avertissement] + +La librairie Net_LDAP2 oblige le fait que la racine DSE de l'annuaire soit lisible en anonyme sinon la connexion à l'annuaire échouera systématiquement. + + +2. Téléchargement +================= + +Il n'existe pas encore de version stable publiée. Vous pouvez obtenir le code source soit en le rapatriant à partir du serveur Subversion, soit en téléchargeant le dernier snapshot nocturne de l'arbre Subversion. + +2.1. A partir de Subversion +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Le dépôt Subversion peut être récupéré anonymement en utilisant la commande suivante : + + svn checkout svn://labs.libre-entreprise.org/svnroot/ldapsaisie + + +La racine web de l'application se trouvera alors dans le dossier /ldapsaisie/trunk/. + +2.2. A partir des snapshot +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Toutes les nuits, un snapshot de l'arbre Subversion est réalisé et est téléchargeable au format tar.gz à l'adresse suivante : http://labs.libre-entreprise.org/snapshots.php?group_id=118 + + +3. Arborescence du projet +========================= + +Racine + +conf/ + + Contient les fichiers de configuration. + + LSobjects/ + Configuration des LSobjets. + LSaddons/ + Configuration des LSaddons. + +includes/ + + Contient les fichiers des ressources. + + addons/ + Les addons au projet. + class/ + Les fichiers de définition des classes PHP. + js/ + Les fichiers Javascript. + libs/ + Les librairies utilisées. + +l10n/ + Les fichiers d'internationalisation. +lsexample/ + Les fichiers relatifs à l'annuaire d'exemple. +templates/ + Les fichiers template de l'interface. Il y a un sous-dossier par template. +css/ + Les fichiers css de l'interface. Il y a un sous-dossier par template CSS. +images/ + Les images de l'interface. Il y a un sous-dossier par template d'image. +tmp/ + Les fichiers temporaires (y compris le cache des templates). + + +4. Les étapes de l'installation +=============================== + +Cette section décrit rapidement les différentes étapes de l'installation de LdapSaisie. + + 1. Téléchargement et décompression si nécessaire. (Cf : 2. Téléchargement) + + 2. Configuration globale : Cette partie est principalement contenue dans le fichier conf/config.inc.php. Il s'agit en particulier de configurer la connexion à votre annuaire. Pour plus de détails, consulter la documentation du projet. [1] + + [Note] + Il est possible de passer l'application en mode debug ce qui peut être utile par la suite. + + 3. Configuration des types de LSobjects : Chaque type d'objet manipulé par LdapSaisie doit correspondre avec un type de LSobject. + + 1. Création du fichier de classe : Ce fichier contient la déclaration de la classe PHP correspondant au type de LSobject. Cette classe étend la classe LSldapObject qui contient pour ainsi dire toute les méthodes et proprités nécessaires pour les types de LSobject simples (sans LSrelation). Les fichiers des classes sont contenus dans le dossier /includes/class/ et portent les noms composés de la manière suivante : + + class.LSobjects.[nom du type d'LSobject].php + + Le plus simple pour cette étape est de recopier un des fichiers d'exemple et de l'adapter en changeant le nom du type d'objet dans l'ensemble du fichier. Pour cela, le fichier de classe du type LSeepeople est le plus simple car il ne contient que le strict minimum. + + 2. Configurer vos LSobject : Cette partie est certainement la plus longue et consiste à déclarer l'ensemble des informations relatives aux types des objets LDAP manipulés. Les fichiers d'exemples fournis vous seront certainement d'une aide précieuse. Pour plus de détails, consulter la documentation du projet. [1] + + 3. Configurer si nécessaire les relations entre les objets appelés LSrelations. Cette opération consiste dans un premier temps à écrire les méthodes PHP nécessaires pour gérer ces relations : pour cela regardez le fichier de classe du type LSeegroup. Il faudra ensuite déclarer ces relations dans la configuration des types d'LSobjects : Pour plus de détails, consulter la documentation du projet. [1] + + 4. Personnaliser l'interface : Il est possible de personnaliser à votre goût l'interface en écrivant votre template ou en modifiant simplement les fichiers CSS. Une partie de cette documentation concernera bientôt cette problématique. Patience... + +Liens +===== + 1. Documentation du projet : http://ldapsaisie.easter-eggs.org/doku.php?id=doc diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php b/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php index a8e4bb76..a2b6d023 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeecompany.php @@ -29,13 +29,13 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( 'orderby' => 'displayName', // possible cases : 'displayName' ou 'subDn' 'container_dn' => 'ou=companies', 'display_name_format' => '%{ou}', - 'label' => _('Company'), + 'label' => 'Company', 'attrs' => array ( /* ----------- start -----------*/ 'ou' => array ( - 'label' => _('Name'), + 'label' => 'Name', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -56,7 +56,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( /* ----------- start -----------*/ 'description' => array ( - 'label' => _('Description'), + 'label' => 'Description', 'ldap_type' => 'ascii', 'html_type' => 'textarea', 'required' => 0, @@ -75,7 +75,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Accountable(s)'), + 'label' => 'Accountable(s)', 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array( @@ -88,7 +88,7 @@ $GLOBALS['LSobjects']['LSeecompany'] = array ( array ( 'basedn' => '%{val}', 'result' => 1, - 'msg' => _("One or several of these users don't exist.") + '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 a5807d0e..021f01aa 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' => _('Groups'), + 'label' => 'Groups', 'attrs' => array ( /* ----------- start -----------*/ 'cn' => array ( - 'label' => _('Name'), + 'label' => 'Name', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'check_data' => array ( 'alphanumeric' => array( - 'msg' => _('Name must contain alphanumeric values only.') + 'msg' => 'Name must contain alphanumeric values only.' ), ), 'validation' => array ( @@ -73,7 +73,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'gidNumber' => array ( - 'label' => _('Identifier'), + 'label' => 'Identifier', 'ldap_type' => 'numeric', 'html_type' => 'text', 'required' => 1, @@ -97,7 +97,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'uniqueMember' => array ( - 'label' => _('Members'), + 'label' => 'Members', 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'html_options' => array( @@ -132,7 +132,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'description' => array ( - 'label' => _('Description'), + 'label' => 'Description', 'ldap_type' => 'ascii', 'html_type' => 'textarea', 'multiple' => 1, @@ -151,7 +151,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Accountable(s)'), + 'label' => 'Accountable(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' => _("One or several of these users don't exist.") + '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 86594fb6..1f06de45 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' => _('Users'), + 'label' => 'Users', // LSrelation 'LSrelation' => array( 'groups' => array( - 'label' => _('Belongs to groups ...'), - 'emptyText' => _("Doesn't belong to any group."), + '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' => _('Civility'), + 'label' => 'Civility', 'img' => 1, 'args' => array ( 'uid', @@ -122,7 +122,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'uid' => array ( - 'label' => _('Identifier'), + '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' => _("Identifier must contain alphanumeric values, dots (.) and dashes (-) only."), + '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' => _('This identifier is already used.') + 'msg' => 'This identifier is already used.' ) ), 'rights' => array( @@ -164,21 +164,21 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'uidNumber' => array ( - 'label' => _('Numeric identifier'), + 'label' => 'Numeric identifier', 'ldap_type' => 'numeric', 'html_type' => 'text', 'required' => 1, 'generate_function' => 'generate_uidNumber', 'check_data' => array ( 'numeric' => array( - 'msg' => _("The numeric identifier must be an integer.") + 'msg' => "The numeric identifier must be an integer." ), ), 'validation' => array ( array ( 'filter' => 'uidNumber=%{val}', 'result' => 0, - 'msg' => _('This uid is already used.') + 'msg' => 'This uid is already used.' ) ), 'rights' => array( @@ -193,14 +193,14 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'givenName' => array ( - 'label' => _('First Name'), + 'label' => 'First Name', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'default_value' => 'toto', 'check_data' => array ( 'alphanumeric' => array( - 'msg' => _('The first name must contain alphanumeric values only.') + 'msg' => 'The first name must contain alphanumeric values only.' ), ), 'rights' => array( @@ -220,7 +220,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sn' => array ( - 'label' => _('Last Name'), + 'label' => 'Last Name', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -240,7 +240,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'cn' => array ( - 'label' => _('Full Name'), + 'label' => 'Full Name', 'ldap_type' => 'ascii', 'html_type' => 'text', 'html_options' => array( @@ -266,7 +266,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'gidNumber' => array ( - 'label' => _('Main group'), + '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' => _("This group doesn't exist."), + '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' => _('Command shell'), - 'help_info' => _("Allow user to connect a POSIX system."), + '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' => _('Samba Identifier'), + 'label' => 'Samba Identifier', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -353,7 +353,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'homeDirectory' => array ( - 'label' => _('Home Directory'), + 'label' => 'Home Directory', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, @@ -367,7 +367,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'mail' => array ( - 'label' => _('E-mail address'), + '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' => _("Given email address is invalid."), + 'msg' => "Given email address is invalid.", 'params' => array('checkDomain' => false) ), ), @@ -399,7 +399,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'personalTitle' => array ( - 'label' => _('Civility'), + 'label' => 'Civility', 'ldap_type' => 'ascii', 'html_type' => 'select_list', 'html_options' => array ( @@ -427,7 +427,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'description' => array ( - 'label' => _('Description'), + 'label' => 'Description', 'ldap_type' => 'ascii', 'html_type' => 'textarea', 'multiple' => 1, @@ -447,7 +447,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'userPassword' => array ( - 'label' => _('Password'), + 'label' => 'Password', 'ldap_type' => 'password', 'ldap_options' => array ( 'encode' => 'md5' @@ -502,7 +502,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'lsRecoveryHash' => array ( - 'label' => _('Password recovery hash'), + 'label' => 'Password recovery hash', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 0, @@ -518,7 +518,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'sambaLMPassword' => array ( - 'label' => _('Samba Password (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' => _('Samba Password (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' => _('Picture'), + 'label' => 'Picture', 'ldap_type' => 'image', 'html_type' => 'image', 'required' => 0, 'view' => 1, 'check_data' => array ( 'imagesize' => array( - 'msg' => _("Picture size is not valid."), + 'msg' => "Picture size is not valid.", 'params' => array( 'maxWidth' => 2000 ) ), 'filesize' => array( - 'msg' => _("File size is not valid."), + 'msg' => "File size is not valid.", 'params' => array( 'maxSize' => 3000000 // taille du fichier en octets ) ), 'imagefile' => array( - 'msg' => _("File type is not valid.") + 'msg' => "File type is not valid." ) ), 'form' => array ( @@ -580,7 +580,7 @@ $GLOBALS['LSobjects']['LSeepeople'] = array ( /* ----------- start -----------*/ 'lsGodfatherDn' => array ( - 'label' => _('Accountable(s)'), + 'label' => 'Accountable(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' => _("One or several users don't exist.") + '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 251a02fc..2482887c 100644 --- a/trunk/conf/config.inc.php +++ b/trunk/conf/config.inc.php @@ -20,20 +20,12 @@ ******************************************************************************/ - -// Définitions des locales -define('LS_TEXT_DOMAIN', 'ldapsaisie'); -define('LS_LOCALE', 'fr_FR.UTF8'); - -setlocale(LC_ALL, LS_LOCALE); -bindtextdomain(LS_TEXT_DOMAIN, 'lang'); -textdomain(LS_TEXT_DOMAIN); - // Configuration LDAP Saisie : $GLOBALS['LSconfig'] = array( 'NetLDAP2' => '/usr/share/php/Net/LDAP2.php', 'Smarty' => '/usr/share/php/smarty/libs/Smarty.class.php', - 'lang' => 'fr_FR.UTF8', + 'lang' => 'fr_FR', + 'encoding' => 'UTF8', 'cacheLSprofiles' => true, 'cacheSubDn' => true, 'cacheSearch' => true, @@ -128,7 +120,7 @@ $GLOBALS['LSconfig'] = array( ) ), 'authObjectType' => 'LSeepeople', - 'subDnLabel' => _('Company'), + 'subDnLabel' => 'Company', 'subDn' => array( '== Toutes ==' => array( 'dn' => 'o=ls', @@ -215,4 +207,8 @@ ini_set( 'magic_quotes_gpc', 'off' ); ini_set( 'magic_quotes_sybase', 'off' ); ini_set( 'magic_quotes_runtime', 'off' ); +// Locale +define('LS_TEXT_DOMAIN', 'ldapsaisie'); +define('LS_I18N_DIR', 'lang'); + ?> diff --git a/trunk/css/default/LSdefault.css b/trunk/css/default/LSdefault.css index fa2b4a15..ac002823 100644 --- a/trunk/css/default/LSdefault.css +++ b/trunk/css/default/LSdefault.css @@ -13,6 +13,19 @@ display: none; } +#LSlang_select { + display: none; + background-color: #000; + -moz-border-radius: 8px; + position: absolute; + max-width: 200px; + padding: 5px; +} + +#LSlang_select img { + vertical-align: middle; +} + #LSdebug { width: 50%; position: absolute; diff --git a/trunk/images/default/en_US.png b/trunk/images/default/en_US.png new file mode 100755 index 0000000000000000000000000000000000000000..10f451fe85c41c6c9a06d543a57114ae2f87ecc1 GIT binary patch literal 609 zcmV-n0-pVeP){qW|y?pud`Sa)3|NY&vWd%S0u>b>P!2!lUe;6EF*#G_c zFVXVt@6Q{uX@40W{p0iY2Aa+A^Cu7i8KT+YH}2j52q4BskM2rJ$^k9;2Xxc_|Np=M z&VaLlA*IO5FlECMfB<5VUNC{tBZO(|zW*;@GJN;|bTJ71`0*d;`d`2P!x=ymOA`2> z+y@9C##^^8%gd{MW@Y91_2d742B2~OQNf=-zkmD?Vqkdk_wPTUNeuu2#KPTG{_;O4 v7C%8E5*DLB7#Kb?Fnj}}-(W6879hX?8lYRg`Y`<~00000NkvXXu0mjfD6Jtx literal 0 HcmV?d00001 diff --git a/trunk/images/default/fr_FR.png b/trunk/images/default/fr_FR.png new file mode 100755 index 0000000000000000000000000000000000000000..8332c4ec23c853944c29b02d7b32a88033f48a71 GIT binary patch literal 545 zcmV++0^a?JP)lgG%);U`26kn-@hOg zU%!6+4+cOs(0HIde9xZz`}Onxub&LUB0x(30+2WcIRJn#2ut|?gWYu1Cf+!-K%B8# zdf?1WA}#uZ8oj7u>$I1i0Al&`=O0k%-@icgAIJnM0xA6maSq6BK-ECw|NZ*S`0Lj% z1_pot6puj;05Ax`F!=umqj7^frO?t|3^&I1kxUq9yECc+jQpY84SWH_0#pxl$?v~F z@*hy-KN0|X07U)z`4{NpU%#2aHUI<=%a31wK(7Du52Oc(|3O^?R1IN+RRjI-n*kVB z3=9AP#PZ|EACPLGJ%9cJNh|>9B%spYzZw7h1%?tp0I_@ndg9MNE>313@6R75NcceF zkr51-#U+7;F#`Sf7i0rK0I_`g_NQ&Z config['label'] != '' ) { - return $this -> config['label']; + return __($this -> config['label']); } else { - return $this -> name; + return __($this -> name); } } diff --git a/trunk/includes/class/class.LSattribute.php b/trunk/includes/class/class.LSattribute.php index 1264ffdf..0001b9fd 100644 --- a/trunk/includes/class/class.LSattribute.php +++ b/trunk/includes/class/class.LSattribute.php @@ -243,8 +243,12 @@ class LSattribute { LSerror :: addErrorCode('LSattribute_03',array('attr' => $this->name,'rule' => $rule)); return; } - if(!isset($rule_infos['msg'])) - $rule_infos['msg']=getFData(_('The value of field %{label} is invalid.'),$this -> config['label']); + if(!isset($rule_infos['msg'])) { + $rule_infos['msg']=getFData(_('The value of field %{label} is invalid.'),$this -> getLabel()); + } + else { + $rule_infos['msg']=__($rule_infos['msg']); + } if(!isset($rule_infos['params'])) $rule_infos['params']=NULL; $form -> addRule($this -> name,$rule,array('msg' => $rule_infos['msg'], 'params' => $rule_infos['params'])); diff --git a/trunk/includes/class/class.LSformElement.php b/trunk/includes/class/class.LSformElement.php index 684d2f52..92802a70 100644 --- a/trunk/includes/class/class.LSformElement.php +++ b/trunk/includes/class/class.LSformElement.php @@ -236,13 +236,13 @@ class LSformElement { */ function getLabel() { if ($this -> label != "") { - return $this -> label; + return __($this -> label); } else if ($this -> params['label']) { - return $this -> params['label']; + return __($this -> params['label']); } else { - return $this -> name; + return __($this -> name); } } diff --git a/trunk/includes/class/class.LSldapObject.php b/trunk/includes/class/class.LSldapObject.php index 88da8277..baf97fb5 100644 --- a/trunk/includes/class/class.LSldapObject.php +++ b/trunk/includes/class/class.LSldapObject.php @@ -1091,7 +1091,7 @@ class LSldapObject { * @retval string Le label de l'objet ($this -> config['label']) */ function getLabel() { - return $this -> config['label']; + return __($this -> config['label']); } diff --git a/trunk/includes/class/class.LSrelation.php b/trunk/includes/class/class.LSrelation.php index a9197ca1..a9aa33c8 100644 --- a/trunk/includes/class/class.LSrelation.php +++ b/trunk/includes/class/class.LSrelation.php @@ -56,7 +56,7 @@ class LSrelation { foreach($object -> config['LSrelation'] as $relationName => $relationConf) { if (LSsession :: relationCanAccess($object -> getValue('dn'),$object->getType(),$relationName)) { $return=array( - 'label' => $relationConf['label'], + 'label' => __($relationConf['label']), 'LSobject' => $relationConf['LSobject'] ); diff --git a/trunk/includes/class/class.LSsession.php b/trunk/includes/class/class.LSsession.php index ab7cbf63..e549650b 100644 --- a/trunk/includes/class/class.LSsession.php +++ b/trunk/includes/class/class.LSsession.php @@ -56,6 +56,10 @@ class LSsession { // Les fichiers temporaires private static $tmp_file = array(); + // Langue et encodage actuel + private static $lang = NULL; + private static $encoding = NULL; + /* * Constante de classe non stockée en session */ @@ -246,7 +250,111 @@ class LSsession { return true; } -/** + /** + * Défini la locale + * + * @retval void + */ + public static function setLocale() { + if (isset($_REQUEST['lang'])) { + $lang = $_REQUEST['lang']; + } + elseif (isset($_SESSION['LSlang'])) { + $lang = $_SESSION['LSlang']; + } + elseif (isset(self :: $ldapServer['lang'])) { + $lang = self :: $ldapServer['lang']; + } + else { + $lang = $GLOBALS['LSconfig']['lang']; + } + + if (isset($_REQUEST['encoding'])) { + $encoding = $_REQUEST['encoding']; + } + elseif (isset($_SESSION['LSencoding'])) { + $encoding = $_SESSION['LSencoding']; + } + elseif (isset(self :: $ldapServer['encoding'])) { + $encoding = self :: $ldapServer['encoding']; + } + else { + $encoding = $GLOBALS['LSconfig']['encoding']; + } + + $_SESSION['LSlang']=$lang; + self :: $lang=$lang; + $_SESSION['LSencoding']=$encoding; + self :: $encoding=$encoding; + + + if (self :: localeExist($lang,$encoding)) { + if ($encoding) { + $lang.='.'.$encoding; + } + setlocale(LC_ALL, $lang); + bindtextdomain(LS_TEXT_DOMAIN, LS_I18N_DIR); + textdomain(LS_TEXT_DOMAIN); + + if (is_file(LS_I18N_DIR.'/'.$lang.'/lang.php')) { + include(LS_I18N_DIR.'/'.$lang.'/lang.php'); + } + } + else { + if ($encoding && $lang) { + $lang.='.'.$encoding; + } + LSdebug('La locale "'.$lang.'" n\'existe pas, utilisation de la locale par défaut.'); + } + } + + /** + * Retourne la liste des langues disponibles + * + * @retval array Tableau/Liste des langues disponibles + **/ + public static function getLangList() { + $list=array('en_US'); + if (self :: $encoding) { + $regex = '^([a-zA-Z_]*)\.'.self :: $encoding.'$'; + } + else { + $regex = '^([a-zA-Z_]*)$'; + } + if ($handle = opendir(LS_I18N_DIR)) { + while (false !== ($file = readdir($handle))) { + if(is_dir(LS_I18N_DIR.'/'.$file)) { + if (ereg($regex,$file,$regs)) { + if (!in_array($regs[1],$list)) { + $list[]=$regs[1]; + } + } + } + } + } + return $list; + } + + /** + * Vérifie si une locale est disponible + * + * @param[in] $lang string La langue (Ex : fr_FR) + * @param[in] $encoding string L'encodage de caractère (Ex : UTF8) + * + * @retval boolean True si la locale est disponible, False sinon + **/ + public static function localeExist($lang,$encoding) { + if ( !$lang && !$encoding ) { + return; + } + $locale=$lang.(($encoding)?'.'.$encoding:''); + if ($locale=='en_US.UTF8') { + return true; + } + return (is_dir(LS_I18N_DIR.'/'.$locale)); + } + + /** * Initialisation LdapSaisie * * @retval boolean True si l'initialisation à réussi, false sinon. @@ -254,7 +362,11 @@ class LSsession { public static function initialize() { if (!self :: loadConfig()) { return; - } + } + session_start(); + + self :: setLocale(); + self :: startLSerror(); self :: loadLSaddons(); return true; @@ -276,8 +388,6 @@ class LSsession { return; } - session_start(); - // Déconnexion if (isset($_GET['LSsession_logout'])||isset($_GET['LSsession_recoverPassword'])) { session_destroy(); @@ -666,6 +776,7 @@ class LSsession { if ( isset($GLOBALS['LSconfig']['ldap_servers'][$id]) ) { self :: $ldapServerId = $id; self :: $ldapServer=$GLOBALS['LSconfig']['ldap_servers'][$id]; + self :: setLocale(); return true; } else { @@ -1075,6 +1186,11 @@ class LSsession { $GLOBALS['Smarty'] -> assign('LSsession_subDn',self :: $topDn); $GLOBALS['Smarty'] -> assign('LSsession_subDnName',self :: getSubDnName()); } + + $GLOBALS['Smarty'] -> assign('LSlanguages',self :: getLangList()); + $GLOBALS['Smarty'] -> assign('LSlang',self :: $lang); + $GLOBALS['Smarty'] -> assign('LSencoding',self :: $encoding); + $GLOBALS['Smarty'] -> assign('lang_label',_('Language')); // Infos if((!empty($_SESSION['LSsession_infos']))&&(is_array($_SESSION['LSsession_infos']))) { @@ -1328,7 +1444,7 @@ class LSsession { foreach($LSaccess as $dn => $access) { $LSaccess[$dn] = array_merge( array( - 'SELF' => _('My account') + 'SELF' => 'My account' ), $access ); @@ -1691,7 +1807,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']:_('Level'); + return (self :: $ldapServer['subDnLabel']!='')?_(self :: $ldapServer['subDnLabel']):_('Level'); } /** diff --git a/trunk/includes/functions.php b/trunk/includes/functions.php index 97ea0844..43700c0f 100644 --- a/trunk/includes/functions.php +++ b/trunk/includes/functions.php @@ -421,4 +421,21 @@ function LSdebugDefined() { fwrite($LSlogFile,$_SERVER['REQUEST_URI']." : ".$msg."\n"); } } + + function __($msg) { + if (isset($GLOBALS['LSlang'][$msg])) { + return $GLOBALS['LSlang'][$msg]; + } + return _($msg); + } + + function tr($msg,$key=null) { + $val = $GLOBALS['Smarty']->get_template_vars($msg); + if (is_array($val)) { + echo __($val[$key]); + } + else { + echo __($val); + } + } ?> diff --git a/trunk/includes/js/LSdefault.js b/trunk/includes/js/LSdefault.js index 9fd4b5fd..fc939975 100644 --- a/trunk/includes/js/LSdefault.js +++ b/trunk/includes/js/LSdefault.js @@ -70,6 +70,44 @@ var LSdefault = new Class({ this.LSjsConfig['keepLSsessionActive'] = (Math.round(this.LSjsConfig['keepLSsessionActive']*0.70)*1000); this.keepLSsession.delay(this.LSjsConfig['keepLSsessionActive'],this); } + + this.initializeLang(); + }, + + initializeLang: function() { + this.LSlang = $('LSlang'); + if ($type(this.LSlang)) { + this.LSlang_select = $('LSlang_select'); + if (this.LSlang_select) { + this.LSlang_open=0; + window.addEvent('click',this.closeLSlang.bind(this)); + this.LSlang.addEvent('click',this.onLSlangClick.bind(this)); + this.LSlang_select.getElements('img').each(function(img) { + img.addEvent('click',this.onSelectLSlangImgClick.bind(this,img)); + },this); + } + } + }, + + onLSlangClick: function() { + LSdebug(this.LSlang_select); + var infos = this.LSlang.getCoordinates(); + this.LSlang_select.setStyle('top',infos.bottom); + this.LSlang_select.setStyle('left',infos.right); + this.LSlang_select.setStyle('display','block'); + this.LSlang_open=1; + }, + + closeLSlang: function(event) { + event = new Event(event); + if (event.target.id!='LSlang') { + this.LSlang_select.setStyle('display','none'); + this.LSlang_open = 0; + } + }, + + onSelectLSlangImgClick: function(img) { + window.location='index.php?lang='+img.alt; }, onWantMoo: function(event) { diff --git a/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo index ad9f249f7e755d03a4c6355efbbe680c273222c8..75833c15e75978b08ed672bd51377d23729fa57f 100644 GIT binary patch delta 4631 zcmY+{2~?G39>?)NyNW0~Nh&Cyq9CAvvIvNP3#j8RxpDPg7Li3j#l&u@8E9qombvDJ zQ#Ls+*K#mra$M4B^3*J8&Y9+<&avzqJI#z`jpNMsf8UpL>^c1I=XoBu@B3`;y?Wqp z9)G#y;rt@l`!%6lBz;MVuSkH0NJ~%c6*(Fx5{Jjo53k}t{5uXn&mfVB7>l7;i+Q*n zz41J9Nx6*r{!cI*uc42KQ@*95H@=4@7#u7@RTg1CT#h=HEvOgRWwqO}2km31H#&`a zqqE45T;io0{?%&V!UWnspk6;VL?n#+OS-$l%~1!k7#W#3Q7`x`4#wwkB%Z)r{0a+k z2-6;iwKxNh<23XQGY2piSuC-k&b$G2qHP$;{pB+%3`)MiUic7oMgjb_&M+8zV?XrA zL|lj&I0?65E#Ab*I6XpSDegu6JO9T-rs7i6ft|t(?AeD&7E>vrG6i2jZGUN*7%5Uf zdo{*lC+f^^;uws1-28hR>e3#@G`x=a7|3!a;S9{g^{6Y@X|?~^m-W{_NMxfEaRKU{ zZ{}q#9>Uq^*cyj8jnGk-qbh?VQ==y2OmRLTlympg5)5R zmFcMOYewDkBbIlp{y0WIivIb?k5gXdwUmx?*cgF)DV-uMxQ>+}B!mDzOMMm@bb$>wQpLY?tG)Wh^Pa&YBq z3`Ad+O9vW(+KxiKK{D!=&J3M_&?9XPA#V z(o*ES$wK6Tkad=Okta<$QMc&2r4J`oS1cKIVsmjC9%tsg8Pxxqy1=zsE^9oQqAx)lMoUR4$_)n(#5^2TBv_$UnvqypExG7ssO)CsJ=*jM`t0 zI`B29H#SfwuoHvuP1Ngk;1axu^Uygom;I!&5$B+Po=6QY!AkrT7h>jEktc9F(k1`K z>6n%;@(XOm8TdKsVM`om4%CV9v_C}dDc>PKl3d{afOAR{6+OM3sDJP^mf?^>^UI(_1kN?6Z3}%_s=Wrc9z?JBnU|#=wT%^zcoQdXV^-0tv z31x#AgVf`8d>8eQPAxVs^gfo-&SBrQe;YQV_hgYLaV@suePmbVnJLz{C$6V`6RWU- z17PR=@+p8!Phg+)hL!jN zzJWp7Ki@q4IoOSM5$XV@Vh?-@Bd`tqaNm5^-;2s2I(p(^%Tw5!_Jw^1)RX%QF2 z4LBNO%gpC@0cO%Zi#oFh_&EA;P+~9!y>UG1jY}{Jm*YTu+0uD}${;$fVt;&yx)uEx zg&xL2tidBVO#7FZOF9vKXg6aZK7~5tEvQSo3v~eP*c}g{7rIamxNGM3M4nZD-m)I`U~AEX?Y=)- z?S70t&<@HIgza{pTy1xiH>l`%e@ViKKFe-@=)p^)56K4{A3hpZ)|NHWPKZRFA7pppGZM=SLha*!mE-6VqSCt7BcGsH(5RvCc1 z$T(6%O7*{;6;x`;9x{Q1lYFwBbd?M$zv^n>x<~3--D|ab7`sCfjB6n!#-z}8!#ixS zks7waxDvM9C=TD@3W~VtVI=j5Hx~D4>_4H(?uf3pH8!rQYp@TO33W9NnP_*^HdU2Z zIT~C|k@v!VYAaUQDqM9b-8}$_Rm;uxz8XYyU#+{mu{{xogQqcea delta 7218 zcmbW(349dQ9l-IIND?4OlOPEo!f@swEMP()+#w+lNCJu=DrhFVLo&F#v+V2!g2zG? z1#cV>5AdiLha0EgmxI0Vy9 z@$MUjb=2#Sf6C!w2JXOa_%ZgyPcT!dl|HPiOXY&&2NIqureswB^JQ{|gym&lj<21j0E|yYXhVtU8 zkY}lFzK^4HaG&pCluV@;cmv2qMyd+15C>ry*5Y*DuhvkQh0kC$s(wl>gc>{pZ$|0Z z5#$#2C*SP;-iU@_4($Qt-D*1az{MyTYeKTE9zq%D3pg0x!j$yvGYZnwmLP5$?vVwC#iQzUasdy2}-#?8qRT&!7h^OOBY{fCS3n$^bC{vI> zB;_^CWeLj->v1&hM*5%*;Sx+^sV~NJ(Za{jz#+rD6kqAPA7$i2=%r}kH2gls@k^AE zTWqOTd_G0tObR6TW?7`XCo%HZbwEzRS1}EZ9 zlo$UBW%177%jviot8qWh!G5HfzA7F0KBcarAU%BrTXE!ArN-g)D1Z1oR$vB=bXrZp z9@v5zxDuImwF>*-RwSuv7s}tgfimaaPxq`wX}=UF$o}6=K}PaBJO>A|GJ0Ygehb%O z7H;yr1v9DNh0KQ9fpY)r*bU!BlBnLteC)-%orJ?M9SczgP=Y;qzbf||reiPab(o8b zQ6AWec^E-?;98VSY(>_mdI1;XhbXIlG9S#AT8Z89c9g%nA7vnWke#Yt!j!De4=AuD zl~&;$BvVmtZ1n4kQ99IuGRN)6pQyKSBc43L+cjJ90_ra!U#Sr+j2v8weK6v?4kd$I zCX)ZY6t>ZjkB_5__+^w;{u;`Q{)n<2i#ROATI5VoA(Tw4_1)!r0A*^@nE1t5jAzJw zDD7`zfBgF-@~=@ig)P9AR^w5=Sc0;+;@BHkqfE_}e*0#W)ZU8H;k!{XwgY9ZA4Pf2 z6DX_wHIym&9AyB*rzrJN8i!Mgf{d_)d5{-1p*+Y!S;ebR9*e~?$j*2IA* znW*+%fHH;4Q0}u)I&z6$zZ?swUx(RvpYP+y-=)+Z3No_&C@;*N=`F@lC?lDJgE5Gb zy30^9br;Hu9z_}Hcaft)J%_A6^(oH9qH6C)$HscezS7Q^V)5{Amh)b~(B_kTcVwTj!cndy{ z7vgygPoA?E&%wED5ox~%S7Xj1ez+lqO7z?ozW$pYHWu#M^z4|8KLntF3AM{?h60fCxKjug~>CBb=UrRx@ z$r9ft>`uKEr9&&RC*FzDv0XR~AHf3r1m*8D8NPhq8+&1%?_iXl@lwpkDOiLHFf){0Pd64&g}r6f>}(#XCn%Lz&VUI2<>jWbjGM z##eD5?^kbAkQe_MGdi8z-PNA}cZI0-*OQmBTm@G?>ETaS{l5T1$_ z4#TUl8$N>4p(ijki^4k;2IFA%$WWZ_+l(@@^(Y;95C`F5EW~bMZx@teg!)Z5O4_N& z)Qm-W(HxYijNm}rhLWkLBjjHe!*eu9Dqr_Kh*{K+p!E2U*aJUDnd3C}jyxy>Wn@E9 z22zVM$JbyQzDn#PULmT8@q}DO9(H)ug8cG&-5vvLM;GP-aUNiapDY287;I=6BbKbA6A!J3j6P!2hHHXhf{Ic+4g2T-{ ztfan<=s`S5yh&6Lw-9THQbMj7#6!djgk(+jyIg$;S;%swdh@Z8c%P8#Ru6R-9`?%) z%F5kJ{D|PJI(EtQ$ePiJa^h{`T;fJTE?L;!37MuT#IFgte&QkH_ZHJwui-17uw@U$T{&HLatm7_j5j`lnL|u~t2rj2Lk< zD1A;cic&3PC2XxIP|To1T1Y2bR7V$URy5om=opy)S$?M1`;Pq4J<{o#ml@T-{kptb zixt5@ZhPy^=IxiDvtTydLK%H=_tfH^n;T#_G(nLRr8hNvLWV_bNkktY+m`KKr zqkhfocI+H`N%{mm(yVJ;QoYb^Sa9^AMfDBE>cqCjvx=SJWzA!ko3ad|-#9JK+Omx! zj!xI{tav$XHkdCaBVn`{aVJoo-_gIkZ(5nV7s!gYp#8j@)hbKsSXyO)>EXDchuS5J z&dBkF1#(By44v>*$eBBSc*Y{hqZ1kbMOKA2Zrr4@3dgD#;+4xQI<{79PwRcAVaKef zeRLz2O=ojW2dJa?Zv8z&y> zAB*YngvnBH?{LS(_p-@XRF3Oa?d|f;ovP7twpZ>MR!1h{v3TcB_a*F>pcRqbZ>WV< z(4@I@r*rP4t=((P(#xfdh5GT=&@nw3O!~{)2&gJ|#~YgAo&X)YCyz*$u(@VTgYq7W)4Vp2X^SD)y#5AipY_@QU@OQ@!kf}=> zs;r3Qku3e6y$(1Vmfn`C^VhtL{`inci`Be>9_yOBE;N0Gm1KPc)S{?nCAC;MNlqmh zUDhoJeWAOZBw?Jy-{j^V{91W;JCl~ZpEZYrhFm*OE*V^`>LPlJp}H(5*(atneswu@ z^gsVldR5nfxW|iX;AhAGO)xa?#BmRwuWOeB=!>RRGx-Vemfn9)YEX~s!9?c{e(z3P z4$fox0B3`~dVJS)bv(1)bC+B3ptnjoA4tSGsriB9L^t9cU+VMID!rc%CfCoWm(6PC uqw7Ou$%i_3u3%Ssv%vnH9UM1M?vsP+YrYRStAZnXEjoVI*v@UiXZ{T!*iZ`q diff --git a/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po b/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po index 85154439..1a8e789c 100644 --- a/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po +++ b/trunk/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: LdapSaisie\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-03-16 11:36+0100\n" -"PO-Revision-Date: 2009-03-16 11:46+0100\n" +"POT-Creation-Date: 2009-03-19 17:11+0100\n" +"PO-Revision-Date: 2009-03-19 18:40+0100\n" "Last-Translator: Benjamin Renard \n" "Language-Team: LdapSaisie \n" "MIME-Version: 1.0\n" @@ -20,8 +20,7 @@ msgstr "" "X-Poedit-Basepath: /var/www/ldapsaisie/trunk\n" #: select.php:186 -#: includes/class/class.LSsession.php:1066 -#: view.php:245 +#: includes/class/class.LSsession.php:1173 msgid "Refresh" msgstr "Rafraîchir" @@ -61,7 +60,7 @@ msgid "Do you really want to delete" msgstr "Voulez-vous vraiement supprimer" #: remove.php:49 -#: includes/class/class.LSsession.php:909 +#: includes/class/class.LSsession.php:1016 #: includes/class/class.LSconfirmBox.php:37 #: includes/class/class.LSsmoothbox.php:39 #: includes/class/class.LSform.php:63 @@ -73,8 +72,6 @@ msgid "Object has been added." msgstr "L'objet a été ajouté." #: create.php:89 -#: view.php:220 -#: view.php:235 msgid "New" msgstr "Nouveau" @@ -226,150 +223,146 @@ msgstr "Support FTP : Impossible de modifier les droits sur le dossier %{dir} su msgid "FTP Support : Unable to rename folder from %{old} to %{new} on the remote server." msgstr "Support FTP : Impossible de renommer le dossier %{old} en %{new} sur le serveur distant." -#: includes/class/class.LSsession.php:849 +#: includes/class/class.LSsession.php:956 msgid "Connection" msgstr "Connexion" -#: includes/class/class.LSsession.php:859 -#: includes/class/class.LSsession.php:898 +#: includes/class/class.LSsession.php:966 +#: includes/class/class.LSsession.php:1005 msgid "LDAP server" msgstr "Serveur LDAP" -#: includes/class/class.LSsession.php:869 -#: includes/class/class.LSsession.php:1694 +#: includes/class/class.LSsession.php:976 +#: includes/class/class.LSsession.php:1805 msgid "Level" msgstr "Niveau" -#: includes/class/class.LSsession.php:870 -#: includes/class/class.LSsession.php:908 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:76 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:125 +#: includes/class/class.LSsession.php:977 +#: includes/class/class.LSsession.php:1015 msgid "Identifier" msgstr "Identifiant" -#: includes/class/class.LSsession.php:871 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:450 +#: includes/class/class.LSsession.php:978 msgid "Password" msgstr "Mot de passe" -#: includes/class/class.LSsession.php:872 +#: includes/class/class.LSsession.php:979 msgid "Connect" msgstr "Se connecter" -#: includes/class/class.LSsession.php:873 +#: includes/class/class.LSsession.php:980 msgid "Forgot your password ?" msgstr "Mot de passe perdu ?" -#: includes/class/class.LSsession.php:891 +#: includes/class/class.LSsession.php:998 msgid "Recovery of your credentials" msgstr "Récupération de votre mot de passe" -#: includes/class/class.LSsession.php:910 +#: includes/class/class.LSsession.php:1017 msgid "Back" msgstr "Retour" -#: includes/class/class.LSsession.php:912 +#: includes/class/class.LSsession.php:1019 msgid "Please fill the identifier field to proceed recovery procedure" msgstr "Merci d'entrer votre identifiant pour poursuivre la procédure de récupération" -#: includes/class/class.LSsession.php:916 +#: includes/class/class.LSsession.php:1023 msgid "An email has been sent to %{mail}. Please follow the instructions on it." msgstr "Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les indications qu'il contient." -#: includes/class/class.LSsession.php:924 +#: includes/class/class.LSsession.php:1031 msgid "Your new password has been sent to %{mail}. " msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}." -#: includes/class/class.LSsession.php:1101 +#: includes/class/class.LSsession.php:1188 +msgid "Language" +msgstr "Langue" + +#: includes/class/class.LSsession.php:1212 msgid "Connected as" msgstr "Connecté en tant que" -#: includes/class/class.LSsession.php:1331 -#: view.php:72 -msgid "My account" -msgstr "Mon compte" - -#: includes/class/class.LSsession.php:1822 +#: includes/class/class.LSsession.php:1933 msgid "LSsession : The constant %{const} is not defined." msgstr "LSsession : La constante %{const} n'est pas définie." -#: includes/class/class.LSsession.php:1825 +#: includes/class/class.LSsession.php:1936 msgid "LSsession : The %{addon} support is uncertain. Verify system compatibility and the add-on configuration." msgstr "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du système et la configuration de l'add-on." -#: includes/class/class.LSsession.php:1828 +#: includes/class/class.LSsession.php:1939 msgid "LSsession : LDAP server's configuration data are invalid. Can't connect." msgstr "LSsession : Les données de configuration du serveur LDAP sont invalide. Impossible de s'y connecter." -#: includes/class/class.LSsession.php:1831 +#: includes/class/class.LSsession.php:1942 msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgstr "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." -#: includes/class/class.LSsession.php:1838 +#: includes/class/class.LSsession.php:1949 msgid "LSsession : Login or password incorrect." msgstr "LSsession : Identifiant ou mot de passe incorrects." -#: includes/class/class.LSsession.php:1841 +#: includes/class/class.LSsession.php:1952 msgid "LSsession : Impossible to identify you : Duplication of identities." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." -#: includes/class/class.LSsession.php:1844 +#: includes/class/class.LSsession.php:1955 msgid "LSsession : Can't load Smarty template engine." msgstr "LSsession : Impossible de charger le moteur de gestion de template Smarty." -#: includes/class/class.LSsession.php:1847 +#: includes/class/class.LSsession.php:1958 msgid "LSsession : Can't connect to LDAP server." msgstr "LSsession : Impossible de se connecter au serveur LDAP." -#: includes/class/class.LSsession.php:1850 +#: includes/class/class.LSsession.php:1961 msgid "LSsession : Could not load type of identifiable objects." msgstr "LSsession : Impossible de charger le moteur de gestion de template Smarty." -#: includes/class/class.LSsession.php:1853 +#: includes/class/class.LSsession.php:1964 msgid "LSsession : Your are not authorized to do this action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." -#: includes/class/class.LSsession.php:1856 +#: includes/class/class.LSsession.php:1967 msgid "LSsession : Some informations are missing to display this page." msgstr "LSsession : Des informations sont manquant pour afficher cette page." -#: includes/class/class.LSsession.php:1860 +#: includes/class/class.LSsession.php:1971 msgid "LSsession : Error during creation of list of levels. Contact administrators. (Code : %{code})" msgstr "LSsession : Erreur durant la création de la liste des niveaux. Contacter les administrateurs. (Code : %{type})" -#: includes/class/class.LSsession.php:1863 +#: includes/class/class.LSsession.php:1974 msgid "LSsession : The password recovery is disabled for this LDAP server." msgstr "LSsession : La récupération de mot de passe est désactivée pour ce serveur LDAP." -#: includes/class/class.LSsession.php:1866 +#: includes/class/class.LSsession.php:1977 msgid "LSsession : Some informations are missing to recover your password. Contact administrators." msgstr "LSsession : Des informations sont manques pour pouvoir récupérer votre mot de passe. Contacter les administrateurs." -#: includes/class/class.LSsession.php:1869 +#: includes/class/class.LSsession.php:1980 msgid "LSsession : Error during password recovery. Contact administrators.(Step : %{step})" msgstr "LSsession : Erreur durant la récupération de votre mot de passe. Contacter les administrateurs. (Etape : %{step})" -#: includes/class/class.LSsession.php:1873 +#: includes/class/class.LSsession.php:1984 msgid "LSsession : problem during initialisation." msgstr "LSsession : Problème durant l'initialisation." -#: includes/class/class.LSsession.php:1879 +#: includes/class/class.LSsession.php:1990 msgid "LSrelation : The listing function for the relation %{relation} is unknow." msgstr "LSsession : La fonction listant la relation %{relation} est inconnue." -#: includes/class/class.LSsession.php:1882 +#: includes/class/class.LSsession.php:1993 msgid "LSrelation : The update function of the relation %{relation} is unknow." msgstr "LSsession : La fonction de mise à jour de la relation %{relation} est inconnue." -#: includes/class/class.LSsession.php:1885 +#: includes/class/class.LSsession.php:1996 msgid "LSrelation : Error during relation update of the relation %{relation}." msgstr "LSsession : Erreur durant la mise à jour de la relation %{relation}" -#: includes/class/class.LSsession.php:1888 +#: includes/class/class.LSsession.php:1999 msgid "LSrelation : Object type %{LSobject} unknow (Relation : %{relation})." msgstr "LSsession : La fonction de mise à jour de la relation %{relation} est inconnue." -#: includes/class/class.LSsession.php:1891 +#: includes/class/class.LSsession.php:2002 msgid "LSrelation : Some parameters are missing in the call of methods to handle standard relations (Method : %{meth})." msgstr "LSrelation : Des paramètres sont manquant dans l'appel des méthodes de manipulation des relations standards." @@ -427,7 +420,7 @@ msgstr "Annuler" #: includes/class/class.LSformElement_textarea.php:50 msgid "Clear" -msgstr "Nottoyer" +msgstr "Nettoyer" #: includes/class/class.LSformElement_url.php:50 msgid "Display this website." @@ -837,163 +830,11 @@ msgstr "Réinitiliser la sélection." msgid "Copy" msgstr "Copier" +#: view.php:72 +msgid "My account" +msgstr "Mon compte" + #: view.php:380 msgid "Actions" msgstr "Actions" -#: conf/LSobjects/config.LSobjects.LSeecompany.php:32 -#: conf/config.inc.php:131 -msgid "Company" -msgstr "Société" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:38 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:46 -msgid "Name" -msgstr "Nom" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:59 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:135 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:430 -msgid "Description" -msgstr "Description" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:78 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:154 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:583 -msgid "Accountable(s)" -msgstr "Responsable(s)" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:91 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:167 -msgid "One or several of these users don't exist." -msgstr "Un ou plusieurs utilisateurs n'existent pas." - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:41 -msgid "Groups" -msgstr "Groupes" - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:52 -msgid "Name must contain alphanumeric values only." -msgstr "Le nom doit contenir uniquement des valeurs alpha-numériques." - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:100 -msgid "Members" -msgstr "Members" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:49 -msgid "Users" -msgstr "Utilisateurs" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:54 -msgid "Belongs to groups ..." -msgstr "Appartient aux groupes ..." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:55 -msgid "Doesn't belong to any group." -msgstr "N'appartient à aucun groupe." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:75 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:402 -msgid "Civility" -msgstr "Civilité" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:138 -msgid "Identifier must contain alphanumeric values, dots (.) and dashes (-) only." -msgstr "L'identifiant doit contenir uniquement des valeurs alpha-numériques, avec eventuellement des points (.) et des tirets (-)." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:146 -msgid "This identifier is already used." -msgstr "Cet identifiant est déjà utilisé." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:167 -msgid "Numeric identifier" -msgstr "Identifiant numérique" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:174 -msgid "The numeric identifier must be an integer." -msgstr "L'identifiant numérique doit forcement être un entier." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:181 -msgid "This uid is already used." -msgstr "Cet uid est déjà utilisé." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:196 -msgid "First Name" -msgstr "Prénom" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:203 -msgid "The first name must contain alphanumeric values only." -msgstr "Le prénom doit contenir uniquement des caractères alpha-numérique." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:223 -msgid "Last Name" -msgstr "Nom" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:243 -msgid "Full Name" -msgstr "Nom complet" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:269 -msgid "Main group" -msgstr "Groupe principal" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:296 -msgid "This group doesn't exist." -msgstr "Ce groupe n'existe pas." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:317 -msgid "Command shell" -msgstr "Interpréteur de commande" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:318 -msgid "Allow user to connect a POSIX system." -msgstr "Autorisie l'utilisateur à se connecter aux systèmes POSIX." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:340 -msgid "Samba Identifier" -msgstr "Identifiant Samba" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:356 -msgid "Home Directory" -msgstr "Dossier personnel" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:370 -msgid "E-mail address" -msgstr "Adresse e-mail" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:382 -msgid "Given email address is invalid." -msgstr "L'adresse mail saisie est invalide." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:505 -msgid "Password recovery hash" -msgstr "Hash de récupération de mot de passe" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:521 -msgid "Samba Password (LM)" -msgstr "Mot de passe Samba (LM)" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:534 -msgid "Samba Password (NT)" -msgstr "Mot de passe Samba (NT)" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:547 -msgid "Picture" -msgstr "Image" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:554 -msgid "Picture size is not valid." -msgstr "La taille de l'image est invalide." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:560 -msgid "File size is not valid." -msgstr "La taille du fichier est invalide." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:566 -msgid "File type is not valid." -msgstr "Le type de fichier est invalide." - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:596 -msgid "One or several users don't exist." -msgstr "Un ou plusieurs utilisateurs n'existent pas." - diff --git a/trunk/lang/fr_FR.UTF8/lang.php b/trunk/lang/fr_FR.UTF8/lang.php new file mode 100644 index 00000000..8ab8fae8 --- /dev/null +++ b/trunk/lang/fr_FR.UTF8/lang.php @@ -0,0 +1,119 @@ + + "Société", + +"Name" => + "Nom", + +"Description" => + "Description", + +"Accountable(s)" => + "Responsable(s)", + +"One or several of these users don't exist." => + "Un ou plusieurs utilisateurs n'existent pas.", + +"Groups" => + "Groupes", + +"Name must contain alphanumeric values only." => + "Le nom doit contenir uniquement des valeurs alpha-numériques.", + +"Members" => + "Members", + +"Users" => + "Utilisateurs", + +"Belongs to groups ..." => + "Appartient aux groupes ...", + +"Doesn't belong to any group." => + "N'appartient à aucun groupe.", + +"Civility" => + "Civilité", + +"Identifier must contain alphanumeric values, dots (.) and dashes (-) only." => + "L'identifiant doit contenir uniquement des valeurs alpha-numériques, avec eventuellement des points (.) et des tirets (-).", + +"This identifier is already used." => + "Cet identifiant est déjà utilisé.", + +"Numeric identifier" => + "Identifiant numérique", + +"The numeric identifier must be an integer." => + "L'identifiant numérique doit forcement être un entier.", + +"This uid is already used." => + "Cet uid est déjà utilisé.", + +"First Name" => + "Prénom", + +"The first name must contain alphanumeric values only." => + "Le prénom doit contenir uniquement des caractères alpha-numérique.", + +"Last Name" => + "Nom", + +"Full Name" => + "Nom complet", + +"Main group" => + "Groupe principal", + +"This group doesn't exist." => + "Ce groupe n'existe pas.", + +"Command shell" => + "Interpréteur de commande", + +"Allow user to connect a POSIX system." => + "Autorisie l'utilisateur à se connecter aux systèmes POSIX.", + +"Samba Identifier" => + "Identifiant Samba", + +"Home Directory" => + "Dossier personnel", + +"E-mail address" => + "Adresse e-mail", + +"Given email address is invalid." => + "L'adresse mail saisie est invalide.", + +"Password recovery hash" => + "Hash de récupération de mot de passe", + +"Samba Password (LM)" => + "Mot de passe Samba (LM)", + +"Samba Password (NT)" => + "Mot de passe Samba (NT)", + +"Picture" => + "Image", + +"Picture size is not valid." => + "La taille de l'image est invalide.", + +"File size is not valid." => + "La taille du fichier est invalide.", + +"File type is not valid." => + "Le type de fichier est invalide.", + +"One or several users don't exist." => + "Un ou plusieurs utilisateurs n'existent pas." + +); + +?> + diff --git a/trunk/lang/ldapsaisie.pot b/trunk/lang/ldapsaisie.pot index 31243e85..825e5480 100644 --- a/trunk/lang/ldapsaisie.pot +++ b/trunk/lang/ldapsaisie.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-03-16 11:36+0100\n" +"POT-Creation-Date: 2009-03-19 18:39+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -16,7 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: select.php:186 includes/class/class.LSsession.php:1066 view.php:245 +#: select.php:186 includes/class/class.LSsession.php:1177 msgid "Refresh" msgstr "" @@ -49,7 +49,7 @@ msgstr "" msgid "Do you really want to delete" msgstr "" -#: remove.php:49 includes/class/class.LSsession.php:909 +#: remove.php:49 includes/class/class.LSsession.php:1020 #: includes/class/class.LSconfirmBox.php:37 #: includes/class/class.LSsmoothbox.php:39 includes/class/class.LSform.php:63 msgid "Validate" @@ -59,7 +59,7 @@ msgstr "" msgid "Object has been added." msgstr "" -#: create.php:89 view.php:220 view.php:235 +#: create.php:89 msgid "New" msgstr "" @@ -218,160 +218,157 @@ msgid "" "server." msgstr "" -#: includes/class/class.LSsession.php:849 +#: includes/class/class.LSsession.php:960 msgid "Connection" msgstr "" -#: includes/class/class.LSsession.php:859 -#: includes/class/class.LSsession.php:898 +#: includes/class/class.LSsession.php:970 +#: includes/class/class.LSsession.php:1009 msgid "LDAP server" msgstr "" -#: includes/class/class.LSsession.php:869 -#: includes/class/class.LSsession.php:1694 +#: includes/class/class.LSsession.php:980 +#: includes/class/class.LSsession.php:1810 msgid "Level" msgstr "" -#: includes/class/class.LSsession.php:870 -#: includes/class/class.LSsession.php:908 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:76 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:125 +#: includes/class/class.LSsession.php:981 +#: includes/class/class.LSsession.php:1019 msgid "Identifier" msgstr "" -#: includes/class/class.LSsession.php:871 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:450 +#: includes/class/class.LSsession.php:982 msgid "Password" msgstr "" -#: includes/class/class.LSsession.php:872 +#: includes/class/class.LSsession.php:983 msgid "Connect" msgstr "" -#: includes/class/class.LSsession.php:873 +#: includes/class/class.LSsession.php:984 msgid "Forgot your password ?" msgstr "" -#: includes/class/class.LSsession.php:891 +#: includes/class/class.LSsession.php:1002 msgid "Recovery of your credentials" msgstr "" -#: includes/class/class.LSsession.php:910 +#: includes/class/class.LSsession.php:1021 msgid "Back" msgstr "" -#: includes/class/class.LSsession.php:912 +#: includes/class/class.LSsession.php:1023 msgid "Please fill the identifier field to proceed recovery procedure" msgstr "" -#: includes/class/class.LSsession.php:916 +#: includes/class/class.LSsession.php:1027 msgid "" "An email has been sent to %{mail}. Please follow the instructions on it." msgstr "" -#: includes/class/class.LSsession.php:924 +#: includes/class/class.LSsession.php:1035 msgid "Your new password has been sent to %{mail}. " msgstr "" -#: includes/class/class.LSsession.php:1101 +#: includes/class/class.LSsession.php:1193 +msgid "Language" +msgstr "" + +#: includes/class/class.LSsession.php:1217 msgid "Connected as" msgstr "" -#: includes/class/class.LSsession.php:1331 view.php:72 -msgid "My account" -msgstr "" - -#: includes/class/class.LSsession.php:1822 +#: includes/class/class.LSsession.php:1938 msgid "LSsession : The constant %{const} is not defined." msgstr "" -#: includes/class/class.LSsession.php:1825 +#: includes/class/class.LSsession.php:1941 msgid "" "LSsession : The %{addon} support is uncertain. Verify system compatibility " "and the add-on configuration." msgstr "" -#: includes/class/class.LSsession.php:1828 +#: includes/class/class.LSsession.php:1944 msgid "" "LSsession : LDAP server's configuration data are invalid. Can't connect." msgstr "" -#: includes/class/class.LSsession.php:1831 +#: includes/class/class.LSsession.php:1947 msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgstr "" -#: includes/class/class.LSsession.php:1838 +#: includes/class/class.LSsession.php:1954 msgid "LSsession : Login or password incorrect." msgstr "" -#: includes/class/class.LSsession.php:1841 +#: includes/class/class.LSsession.php:1957 msgid "LSsession : Impossible to identify you : Duplication of identities." msgstr "" -#: includes/class/class.LSsession.php:1844 +#: includes/class/class.LSsession.php:1960 msgid "LSsession : Can't load Smarty template engine." msgstr "" -#: includes/class/class.LSsession.php:1847 +#: includes/class/class.LSsession.php:1963 msgid "LSsession : Can't connect to LDAP server." msgstr "" -#: includes/class/class.LSsession.php:1850 +#: includes/class/class.LSsession.php:1966 msgid "LSsession : Could not load type of identifiable objects." msgstr "" -#: includes/class/class.LSsession.php:1853 +#: includes/class/class.LSsession.php:1969 msgid "LSsession : Your are not authorized to do this action." msgstr "" -#: includes/class/class.LSsession.php:1856 +#: includes/class/class.LSsession.php:1972 msgid "LSsession : Some informations are missing to display this page." msgstr "" -#: includes/class/class.LSsession.php:1860 +#: includes/class/class.LSsession.php:1976 msgid "" "LSsession : Error during creation of list of levels. Contact administrators. " "(Code : %{code})" msgstr "" -#: includes/class/class.LSsession.php:1863 +#: includes/class/class.LSsession.php:1979 msgid "LSsession : The password recovery is disabled for this LDAP server." msgstr "" -#: includes/class/class.LSsession.php:1866 +#: includes/class/class.LSsession.php:1982 msgid "" "LSsession : Some informations are missing to recover your password. Contact " "administrators." msgstr "" -#: includes/class/class.LSsession.php:1869 +#: includes/class/class.LSsession.php:1985 msgid "" "LSsession : Error during password recovery. Contact administrators.(Step : %" "{step})" msgstr "" -#: includes/class/class.LSsession.php:1873 +#: includes/class/class.LSsession.php:1989 msgid "LSsession : problem during initialisation." msgstr "" -#: includes/class/class.LSsession.php:1879 +#: includes/class/class.LSsession.php:1995 msgid "" "LSrelation : The listing function for the relation %{relation} is unknow." msgstr "" -#: includes/class/class.LSsession.php:1882 +#: includes/class/class.LSsession.php:1998 msgid "LSrelation : The update function of the relation %{relation} is unknow." msgstr "" -#: includes/class/class.LSsession.php:1885 +#: includes/class/class.LSsession.php:2001 msgid "LSrelation : Error during relation update of the relation %{relation}." msgstr "" -#: includes/class/class.LSsession.php:1888 +#: includes/class/class.LSsession.php:2004 msgid "LSrelation : Object type %{LSobject} unknow (Relation : %{relation})." msgstr "" -#: includes/class/class.LSsession.php:1891 +#: includes/class/class.LSsession.php:2007 msgid "" "LSrelation : Some parameters are missing in the call of methods to handle " "standard relations (Method : %{meth})." @@ -381,49 +378,49 @@ msgstr "" msgid "The value of field %{label} is invalid." msgstr "" -#: includes/class/class.LSattribute.php:690 +#: includes/class/class.LSattribute.php:694 msgid "" "LSattribute : Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} " "& HTML = %{html})." msgstr "" -#: includes/class/class.LSattribute.php:693 +#: includes/class/class.LSattribute.php:697 msgid "" "LSattribute : The function %{func} to display the attribute %{attr} is " "unknow." msgstr "" -#: includes/class/class.LSattribute.php:696 +#: includes/class/class.LSattribute.php:700 msgid "" "LSattribute : The rule %{rule} to validate the attribute %{attr} is unknow." msgstr "" -#: includes/class/class.LSattribute.php:699 +#: includes/class/class.LSattribute.php:703 msgid "" "LSattribute : Configuration data to verify the attribute %{attr} are " "incorrect." msgstr "" -#: includes/class/class.LSattribute.php:702 +#: includes/class/class.LSattribute.php:706 msgid "" "LSattribute : The function %{func} to save the attribute %{attr} is unknow." msgstr "" -#: includes/class/class.LSattribute.php:705 +#: includes/class/class.LSattribute.php:709 msgid "LSattribute : The value of the attribute %{attr} can't be generated." msgstr "" -#: includes/class/class.LSattribute.php:708 +#: includes/class/class.LSattribute.php:712 msgid "LSattribute : Generation of the attribute %{attr} failed." msgstr "" -#: includes/class/class.LSattribute.php:711 +#: includes/class/class.LSattribute.php:715 msgid "" "LSattribute : Generation of the attribute %{attr} did not return a correct " "value." msgstr "" -#: includes/class/class.LSattribute.php:714 +#: includes/class/class.LSattribute.php:718 msgid "" "LSattribute : The attr_%{type} of the attribute %{name} is not yet defined." msgstr "" @@ -909,162 +906,10 @@ msgstr "" msgid "Copy" msgstr "" +#: view.php:72 +msgid "My account" +msgstr "" + #: view.php:380 msgid "Actions" msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:32 conf/config.inc.php:131 -msgid "Company" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:38 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:46 -msgid "Name" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:59 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:135 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:430 -msgid "Description" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:78 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:154 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:583 -msgid "Accountable(s)" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeecompany.php:91 -#: conf/LSobjects/config.LSobjects.LSeegroup.php:167 -msgid "One or several of these users don't exist." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:41 -msgid "Groups" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:52 -msgid "Name must contain alphanumeric values only." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeegroup.php:100 -msgid "Members" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:49 -msgid "Users" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:54 -msgid "Belongs to groups ..." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:55 -msgid "Doesn't belong to any group." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:75 -#: conf/LSobjects/config.LSobjects.LSeepeople.php:402 -msgid "Civility" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:138 -msgid "" -"Identifier must contain alphanumeric values, dots (.) and dashes (-) only." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:146 -msgid "This identifier is already used." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:167 -msgid "Numeric identifier" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:174 -msgid "The numeric identifier must be an integer." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:181 -msgid "This uid is already used." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:196 -msgid "First Name" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:203 -msgid "The first name must contain alphanumeric values only." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:223 -msgid "Last Name" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:243 -msgid "Full Name" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:269 -msgid "Main group" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:296 -msgid "This group doesn't exist." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:317 -msgid "Command shell" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:318 -msgid "Allow user to connect a POSIX system." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:340 -msgid "Samba Identifier" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:356 -msgid "Home Directory" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:370 -msgid "E-mail address" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:382 -msgid "Given email address is invalid." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:505 -msgid "Password recovery hash" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:521 -msgid "Samba Password (LM)" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:534 -msgid "Samba Password (NT)" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:547 -msgid "Picture" -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:554 -msgid "Picture size is not valid." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:560 -msgid "File size is not valid." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:566 -msgid "File type is not valid." -msgstr "" - -#: conf/LSobjects/config.LSobjects.LSeepeople.php:596 -msgid "One or several users don't exist." -msgstr "" diff --git a/trunk/templates/default/LSdefault.tpl b/trunk/templates/default/LSdefault.tpl new file mode 100644 index 00000000..8ec1c2ef --- /dev/null +++ b/trunk/templates/default/LSdefault.tpl @@ -0,0 +1,20 @@ +
+{$LSjsConfig} +
+ +
{$LSinfos}
+ +
+{$LSerrors} +
+ +
+ X +
{if $LSdebug != ''}{$LSdebug}{/if}
+
+ +
+{foreach from=$LSlanguages item=lang} + {$lang} +{/foreach} +
diff --git a/trunk/templates/default/LSform_view.tpl b/trunk/templates/default/LSform_view.tpl index 6754b9c2..2d84943a 100644 --- a/trunk/templates/default/LSform_view.tpl +++ b/trunk/templates/default/LSform_view.tpl @@ -4,7 +4,7 @@ diff --git a/trunk/templates/default/login.tpl b/trunk/templates/default/login.tpl index 790c0b8d..4fc13ee0 100644 --- a/trunk/templates/default/login.tpl +++ b/trunk/templates/default/login.tpl @@ -10,14 +10,9 @@ {$LSsession_js} -
{$LSinfos}
-
-{$LSerrors} -
-
- X -
{if $LSdebug != ''}{$LSdebug}{/if}
-
+ +{include file='LSdefault.tpl'} +
@@ -36,6 +31,7 @@
+{$lang_label} : {$LSlang} {$loginform_label_recoverPassword}
diff --git a/trunk/templates/default/recoverpassword.tpl b/trunk/templates/default/recoverpassword.tpl index 31eebe3a..dd1648dd 100644 --- a/trunk/templates/default/recoverpassword.tpl +++ b/trunk/templates/default/recoverpassword.tpl @@ -9,14 +9,9 @@ {$LSsession_js} -
-{$LSerrors} -
-
{$LSinfos}
-
- X -
{if $LSdebug != ''}{$LSdebug}{/if}
-
+ +{include file='LSdefault.tpl'} +
@@ -33,7 +28,7 @@

{$recoverpassword_msg}

- +{$lang_label} : {$LSlang} {$recoverpasswordform_label_back}
diff --git a/trunk/templates/default/top.tpl b/trunk/templates/default/top.tpl index 1e7bb37f..18651600 100644 --- a/trunk/templates/default/top.tpl +++ b/trunk/templates/default/top.tpl @@ -3,7 +3,7 @@ "http://www.w3.org/TR/html4/loose.dtd"> - + LdapSaisie{if $pagetitle != ''} - {$pagetitle}{/if} @@ -12,18 +12,8 @@ {$LSsession_js} -
-{$LSjsConfig} -
-
{$LSinfos}
-
-{$LSerrors} -
-
- X -
{if $LSdebug != ''}{$LSdebug}{/if}
-
+{include file='LSdefault.tpl'} @@ -42,11 +32,12 @@ {/if} diff --git a/trunk/templates/default/viewList.tpl b/trunk/templates/default/viewList.tpl index ff710ad6..a24acce3 100644 --- a/trunk/templates/default/viewList.tpl +++ b/trunk/templates/default/viewList.tpl @@ -18,7 +18,7 @@ diff --git a/trunk/view.php b/trunk/view.php index 94c30f09..5106ce66 100644 --- a/trunk/view.php +++ b/trunk/view.php @@ -217,7 +217,7 @@ if(LSsession :: startLSsession()) { LSdebug('Recherche : Check Create()'); if (LSsession :: canCreate($LSobject)) { $searchData['LSview_actions']['create'] = array ( - 'label' => _('New'), + 'label' => 'New', 'url' => 'create.php?LSobject='.$LSobject, 'action' => 'create' ); @@ -232,7 +232,7 @@ if(LSsession :: startLSsession()) { LSdebug('Find : Load'); if (LSsession :: canCreate($LSobject)) { $LSview_actions['create'] = array ( - 'label' => _('New'), + 'label' => 'New', 'url' => 'create.php?LSobject='.$LSobject, 'action' => 'create' ); @@ -242,7 +242,7 @@ if(LSsession :: startLSsession()) { $LSview_actions['create'] = false; } $LSview_actions['refresh'] = array ( - 'label' => _('Refresh'), + 'label' => 'Refresh', 'url' => 'view.php?LSobject='.$LSobject.'&refresh', 'action' => 'refresh' );
+ {$lang_label} : {$LSlang} {$connected_as} {$LSsession_username} Logout