From 65c9b0e07661d067d2cc96f9548de134a6bbfe53 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Nov 2006 05:05:11 +0000 Subject: [PATCH] Trad: Traduction fiche LDAP --- htdocs/langs/en_US/ldap.lang | 10 ++++++++++ htdocs/langs/fr_FR/ldap.lang | 1 + htdocs/lib/contact.lib.php | 20 +++++++++++--------- 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 htdocs/langs/en_US/ldap.lang diff --git a/htdocs/langs/en_US/ldap.lang b/htdocs/langs/en_US/ldap.lang new file mode 100644 index 00000000000..03d4c11fcef --- /dev/null +++ b/htdocs/langs/en_US/ldap.lang @@ -0,0 +1,10 @@ +# Dolibarr language file - en_US - ldap +DomainPassword=Password for domain +UserMustChangePassNextLogon=User must change its password to next connexion +LdapUacf_NORMAL_ACCOUNT=User account +LdapUacf_DONT_EXPIRE_PASSWORD=Password never expires +LdapUacf_ACCOUNTDISABLE=Account is disabled on this domain +LDAPInformationsForThisContact=Informations in LDAP database for this contact +LDAPInformationsForThisUser=Informations in LDAP database for this user +LDAPAttribute=Attribute +LDAPCard=LDAP card \ No newline at end of file diff --git a/htdocs/langs/fr_FR/ldap.lang b/htdocs/langs/fr_FR/ldap.lang index 9e7c8d77146..510592b640a 100644 --- a/htdocs/langs/fr_FR/ldap.lang +++ b/htdocs/langs/fr_FR/ldap.lang @@ -7,3 +7,4 @@ LdapUacf_ACCOUNTDISABLE=Le compte est d LDAPInformationsForThisContact=Informations en base LDAP pour ce contact LDAPInformationsForThisUser=Informations en base LDAP pour cet utilisateur LDAPAttribute=Attribut +LDAPCard=Fiche LDAP diff --git a/htdocs/lib/contact.lib.php b/htdocs/lib/contact.lib.php index c0328381212..324f7fb3ec0 100644 --- a/htdocs/lib/contact.lib.php +++ b/htdocs/lib/contact.lib.php @@ -36,10 +36,20 @@ function contact_prepare_head($contrat) $head = array(); $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"]; - $head[$h][1] = $langs->trans("General"); + $head[$h][1] = $langs->trans("Card"); $head[$h][2] = 'general'; $h++; + if ($conf->ldap->enabled && $conf->global->LDAP_CONTACT_ACTIVE) + { + $langs->load("ldap"); + + $head[$h][0] = DOL_URL_ROOT.'/contact/ldap.php?id='.$_GET["id"]; + $head[$h][1] = $langs->trans("LDAPCard"); + $head[$h][2] = 'ldap'; + $h++; + } + $head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"]; $head[$h][1] = $langs->trans("PersonalInformations"); $head[$h][2] = 'perso'; @@ -50,14 +60,6 @@ function contact_prepare_head($contrat) $head[$h][2] = 'exportimport'; $h++; - if ($conf->ldap->enabled && $conf->global->LDAP_CONTACT_ACTIVE) - { - $head[$h][0] = DOL_URL_ROOT.'/contact/ldap.php?id='.$_GET["id"]; - $head[$h][1] = $langs->trans("LDAP"); - $head[$h][2] = 'ldap'; - $h++; - } - $head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"]; $head[$h][1] = $langs->trans("Info"); $head[$h][2] = 'info';