From 1fd1436c3b988b461539dd38f54afde648635609 Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Wed, 7 Dec 2005 16:13:23 +0000
Subject: [PATCH] Ajout traduction

---
 htdocs/compta/facture.php        | 14 ++++++++------
 htdocs/langs/en_US/products.lang |  3 ++-
 htdocs/langs/fr_FR/products.lang |  3 ++-
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index cf0e6f48caf..97e30cacf5c 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -47,6 +47,8 @@ if (!$user->rights->facture->lire)
     accessforbidden();
 
 $langs->load('bills');
+$langs->load('products');
+$langs->load('main');
 
 $sall=isset($_GET['sall'])?$_GET['sall']:$_POST['sall'];
 if (isset($_GET['msg'])) { $msg=urldecode($_GET['msg']); }
@@ -1491,9 +1493,9 @@ else
 						if ($conf->service->enabled)
 						{
 							print '<tr '.$bc[$var].'>';
-							print '<td colspan="9">Si produit de type service � dur�e limit�e: Du ';
+							print '<td colspan="9">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
 							print $html->select_date($objp->date_start,'date_start',0,0,$objp->date_start?0:1);
-							print ' au ';
+							print ' '.$langs->trans('to').' ';
 							print $html->select_date($objp->date_end,'date_end',0,0,$objp->date_end?0:1);
 							print '</td>';
 							print '</tr>';
@@ -1549,9 +1551,9 @@ else
 				if ($conf->service->enabled)
 				{
 					print '<tr '.$bc[$var].'>';
-					print '<td colspan="9">Si produit de type service � dur�e limit�e: Du ';
+					print '<td colspan="9">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
 					print $html->select_date('','date_start',0,0,1);
-					print ' au ';
+					print ' '.$langs->trans('to').' ';
 					print $html->select_date('','date_end',0,0,1);
 					print '</td>';
 					print '</tr>';
@@ -1579,9 +1581,9 @@ else
     				if ($conf->service->enabled)
     				{
     					print '<tr '.$bc[$var].'>';
-    					print '<td colspan="5">Si produit de type service � dur�e limit�e: Du ';
+    					print '<td colspan="5">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
     					print $html->select_date('','date_start',0,0,1);
-    					print ' au ';
+    					print ' '.$langs->trans('to').' ';
     					print $html->select_date('','date_end',0,0,1);
     					print '</td>';
     					print '</tr>';
diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang
index 3db60d0fa17..b0851e22b52 100644
--- a/htdocs/langs/en_US/products.lang
+++ b/htdocs/langs/en_US/products.lang
@@ -66,4 +66,5 @@ BarCode=Barcode
 Pack=Pack
 Packs=Packs
 NoteNotVisibleOnBill=Note (not visible on invoices, proposals...)
-CreateCopy=Create copy
\ No newline at end of file
+CreateCopy=Create copy
+ServiceLimitedDuration=If produced of service type at limited duration:
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang
index 97a385304dc..681772a67ef 100644
--- a/htdocs/langs/fr_FR/products.lang
+++ b/htdocs/langs/fr_FR/products.lang
@@ -79,4 +79,5 @@ BarCode=Code barre
 Pack=Lot
 Packs=Lots
 NoteNotVisibleOnBill=Note (non visible sur les factures, propals...)
-CreateCopy=Cr�er copie
\ No newline at end of file
+CreateCopy=Cr�er copie
+ServiceLimitedDuration=Si produit de type service � dur�e limit�e :
\ No newline at end of file
-- 
GitLab