From 28c0c1dec88b349b8f2d345f8a1d43326f047ea1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 3 Aug 2006 11:53:09 +0000 Subject: [PATCH] fix: traduction --- htdocs/commande/fiche.php | 4 ++-- htdocs/commande/liste.php | 3 ++- htdocs/compta/commande/fiche.php | 4 ++-- htdocs/compta/facture.php | 8 ++++---- htdocs/expedition/commande.php | 4 ++-- htdocs/expedition/fiche.php | 4 ++-- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 3ef0c7db85c..308a69de2de 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1016,10 +1016,10 @@ else print ''; - if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; + if ($_GET['action'] != 'RefCustomerOrder' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; - if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') + if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print '
'; print ''; diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 3529c1ab54f..01c1b9b110d 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -32,6 +32,7 @@ require('./pre.inc.php'); $langs->load('orders'); +$langs->load('companies'); if (!$user->rights->commande->lire) accessforbidden(); @@ -148,7 +149,7 @@ if ($resql) print ''; print_liste_field_titre($langs->trans('Ref'),'liste.php','c.ref','','&socidp='.$socidp,'width="25%"',$sortfield); print_liste_field_titre($langs->trans('Company'),'liste.php','s.nom','','&socidp='.$socidp,'width="30%"',$sortfield); - print_liste_field_titre($langs->trans('RefCdeClient'),'liste.php','c.ref_client','','&socidp='.$socidp,'width="15%"',$sortfield); + print_liste_field_titre($langs->trans('RefCustomerOrder'),'liste.php','c.ref_client','','&socidp='.$socidp,'width="15%"',$sortfield); print_liste_field_titre($langs->trans('Date'),'liste.php','c.date_commande','','&socidp='.$socidp, 'width="20%" align="right" colspan="2"',$sortfield); print_liste_field_titre($langs->trans('Status'),'liste.php','c.fk_statut','','&socidp='.$socidp,'width="10%" align="center"',$sortfield); print ''; diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 9d47d8b49b0..927569739d9 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -106,10 +106,10 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; + if ($_GET['action'] != 'RefCustomerOrder' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; - if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') + if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; print ''; diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index fa91e6b3caf..e94cfa6b4f5 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1039,7 +1039,7 @@ if ($_GET['action'] == 'create') */ if ($conf->global->FAC_USE_CUSTOMER_ORDER_REF) { - print ''.$langs->trans('RefCdeClient').''; + print ''.$langs->trans('RefCustomerOrder').''; print ''; print ''; } @@ -1485,10 +1485,10 @@ else print ''; - if ($_GET['action'] != 'refcdeclient' && $fac->brouillon) print ''; + if ($_GET['action'] != 'RefCustomerOrder' && $fac->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; - if ($user->rights->facture->creer && $_GET['action'] == 'refcdeclient') + if ($user->rights->facture->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; print ''; @@ -1644,7 +1644,7 @@ else */ if ($conf->global->FAC_USE_CUSTOMER_ORDER_REF) { - print ''.$langs->trans('RefCdeClient').''; + print ''.$langs->trans('RefCustomerOrder').''; if ($fac->brouillon == 1 && $user->rights->facture->creer) { diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index 592d798d777..17dcb340eb2 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -122,10 +122,10 @@ if ($_GET["id"] > 0) print ''; - if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; + if ($_GET['action'] != 'RefCustomerOrder' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; - if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') + if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; print ''; diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 96a90345788..7bfa7f9109f 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -219,10 +219,10 @@ if ($_GET["action"] == 'create') print ''; - if ($_GET['action'] != 'refcdeclient' && $commande->brouillon) print ''; + if ($_GET['action'] != 'RefCustomerOrder' && $commande->brouillon) print ''; print '
'; print $langs->trans('RefCustomerOrderShort').''; print ''.img_edit($langs->trans('Edit')).''.img_edit($langs->trans('Edit')).'
'; print ''; - if ($user->rights->commande->creer && $_GET['action'] == 'refcdeclient') + if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; print '';