From ec96647b6bde04779206b8e20df0fe750bd3fec6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 22 Oct 2004 23:44:50 +0000 Subject: [PATCH] Trad: Encore de la traduction --- htdocs/product/stock/index.php | 16 +++++++++----- htdocs/product/stock/product.php | 36 +++++++++++++++----------------- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php index 9dcffc7c6de..0a22353a120 100644 --- a/htdocs/product/stock/index.php +++ b/htdocs/product/stock/index.php @@ -20,6 +20,12 @@ * $Source$ * */ + +/*! \file htdocs/product/stock/index.php + \brief Page accueil stocks produits + \version $Revision$ +*/ + require("./pre.inc.php"); /* @@ -27,11 +33,11 @@ require("./pre.inc.php"); * */ -llxHeader("","","Stocks"); +llxHeader("","",$langs->trans("Stocks")); -print_titre("Stocks"); +print_titre($langs->trans("Stocks")); -print ''; +print '
'; print '
'; $sql = "SELECT e.label, e.rowid, e.statut FROM ".MAIN_DB_PREFIX."entrepot as e"; @@ -50,7 +56,7 @@ if ($result) if ($num > 0) { - print ''; + print '
'; print ''; @@ -72,7 +78,7 @@ if ($result) } else { - print $db->error() . "
" .$sql; + dolibarr_print_error($db); } print '
Entrepôts
'; diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index cfe7b564ab2..e8226a7ab66 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -45,7 +45,7 @@ $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); -llxHeader("","","Fiche produit"); +llxHeader("","",$langs->trans("ProductCard")); if ($_POST["action"] == "create_stock") { @@ -84,8 +84,8 @@ if ($_GET["id"]) print '
'; print '
'; print ''; - print $langs->trans("Ref").':    '; - print $langs->trans("Label").':  '; + print $langs->trans("Ref").':    '; + print $langs->trans("Label").':  '; print '
'; @@ -102,7 +102,7 @@ if ($_GET["id"]) if($product->type == 0) { $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; - $head[$h][1] = 'Stock'; + $head[$h][1] = $langs->trans("Stock"); $hselected=$h; $h++; } @@ -115,26 +115,24 @@ if ($_GET["id"]) print($mesg); - print_fiche_titre('Fiche stock : '.$product->ref, $mesg); - - print ''; + print '
'; print ""; print ''; print ''; print ''; print ''; - print ''; + print ''; print '
'.$langs->trans("Ref").''.$product->ref.''; if ($product->envente) { - print "En vente"; + print $langs->trans("OnSell"); } else { - print "Cet article n'est pas en vente"; + print $langs->trans("NotOnSell"); } print '
'.$langs->trans("Label").''.$product->libelle.''.$langs->trans("Statistics").'
Prix de vente'.price($product->price).'
'.$langs->trans("SellingPrice").''.price($product->price).''; - print 'Fournisseurs ['.$langs->trans("Add").']'; + print $langs->trans("Suppliers").' ['.$langs->trans("Add").']'; $sql = "SELECT s.nom, s.idp"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."product_fournisseur as pf"; @@ -145,7 +143,7 @@ if ($_GET["id"]) { $num = $db->num_rows(); $i = 0; - print ''; + print '
'; $var=True; while ($i < $num) { @@ -167,7 +165,7 @@ if ($_GET["id"]) * Contenu des stocks * */ - print '
'; + print '
'; print ''; $sql = "SELECT e.rowid, e.label, ps.reel FROM ".MAIN_DB_PREFIX."entrepot as e, ".MAIN_DB_PREFIX."product_stock as ps"; $sql .= " WHERE ps.fk_entrepot = e.rowid AND ps.fk_product = $product->id"; @@ -188,8 +186,6 @@ if ($_GET["id"]) print '
EntrepôtValeur du stock
'.$langs->trans("Total").':'.$total."
"; print '
'; - - } print ''; @@ -202,7 +198,7 @@ if ($_GET["id"]) print_titre ("Correction du stock"); print "
id\" method=\"post\">\n"; print ''; - print ''; + print '
'; print '
Entrepôt'; - print ''; + print '
'; print '
Entrepôt