diff --git a/htdocs/product/index.php b/htdocs/product/index.php
index 5cac6992dd5..146d0116b42 100644
--- a/htdocs/product/index.php
+++ b/htdocs/product/index.php
@@ -23,23 +23,28 @@
require("./pre.inc.php");
$user->getrights('produit');
+$langs->load("products");
+
+
if (!$user->rights->produit->lire)
accessforbidden();
+
if ($action == 'update')
{
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET description='$desc' where rowid = $rowid";
$db->query($sql);
}
+
/*
*
*
*/
-llxHeader("","","Accueil Produits et services");
+llxHeader("","",$langs->trans("ProductsAndServices"));
-print_titre("Produits et services");
+print_titre($langs->trans("ProductsAndServices"));
print '
';
@@ -65,29 +70,30 @@ if ($db->query($sql))
}
print '';
print '';
+
/*
* Derniers produits/services en vente
*/
@@ -102,14 +108,14 @@ if ($result)
$i = 0;
- $typeprodser[0]="Produit";
- $typeprodser[1]="Service";
+ $typeprodser[0]=$langs->trans("Product");
+ $typeprodser[1]=$langs->trans("Service");
if ($num > 0)
{
print '';
- print '| Derniers produits/services en vente enregistrés | ';
+ print '| '.$langs->trans("LastRecorded").' | ';
$var=True;
while ($i < $num)
@@ -132,7 +138,7 @@ if ($result)
}
else
{
- print $db->error() . " " .$sql;
+ dolibarr_print_error();
}
print ' ';
|