| '.$langs->trans("Type").' | ';
$form->select_array('type',array('varchar'=>'chaine',
'text'=>'texte',
'int'=>'entier',
@@ -176,10 +176,10 @@ if ($_GET["attrname"] && $_GET["action"] == 'edit')
print '';
print '';
- print '| Libellé | | ';
+ print '| '.$langs->trans("Label").' | | ';
print '| Nom de l\'attribut | '.$_GET["attrname"].' | ';
list($type,$size)=preg_split('/\(|\)/',$adho->attribute_name[$_GET["attrname"]]);
- print '| Type | ';
+ print ' | | '.$langs->trans("Type").' | ';
$form->select_array('type',array('varchar'=>'chaine',
'text'=>'texte',
'int'=>'entier',
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index 08d15cfe494..81ac371fa6a 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -103,7 +103,7 @@ if ($result)
print ' | ';
print "| Id | ";
- print "Libellé | Cotisation ? | Vote ? | | ";
+ print ''.$langs->trans("Label").' | Cotisation ? | Vote ? | | ';
print " \n";
$var=True;
@@ -157,7 +157,7 @@ if ($_GET["action"] == 'create') {
print '';
- print '| Libellé | | ';
+ print '| '.$langs->trans("Label").' | | ';
print '| Soumis à cotisation | ';
@@ -169,7 +169,7 @@ if ($_GET["action"] == 'create') {
print '';
- print ' | | Commentaires : | ';
+ print ' | | '.$langs->trans("Comments").' : | ';
print " | ";
print '| Mail d\'accueil : | ';
@@ -207,7 +207,7 @@ if ($_GET["rowid"] > 0 && $_GET["action"] == 'edit')
print '';
print '';
- print '| Libellé | | ';
+ print '| '.$langs->trans("Label").' | | ';
print '| Soumis à cotisation | ';
@@ -220,7 +220,7 @@ if ($_GET["rowid"] > 0 && $_GET["action"] == 'edit')
$htmls->selectyesno("vote",$adht->vote);
print ' | ';
- print '| Commentaires : | ';
+ print ' | | '.$langs->trans("Comments").' : | ';
print " | ";
print '| Mail d\'accueil : | ';
diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php
index 34b36bb33ce..e72eb956a5c 100644
--- a/htdocs/admin/adherent.php
+++ b/htdocs/admin/adherent.php
@@ -232,13 +232,13 @@ function form_constantes($tableau){
global $db,$bc;
$form = new Form($db);
print '';
- print '';
- print '| Description | ';
- print 'Valeur | ';
- print 'Type | ';
- //print 'Note | ';
- print "Action | ";
- print " \n";
+ print '';
+ print '| '.$langs->trans("Description").' | ';
+ print 'Valeur | ';
+ print ''.$langs->trans("Type").' | ';
+ //print 'Note | ';
+ print "Action | ";
+ print " \n";
$var=True;
foreach($tableau as $const){
diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index fbf98f2c7f6..a798f0a342a 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -350,7 +350,7 @@ print '';
diff --git a/htdocs/admin/system/gendata.php b/htdocs/admin/system/gendata.php
index 350cc6e7742..ddcb42cff17 100644
--- a/htdocs/admin/system/gendata.php
+++ b/htdocs/admin/system/gendata.php
@@ -77,8 +77,8 @@ if ($action == 'product')
$produit->type = 1;
$produit->envente = 1;
$produit->ref = time() . "$f";
- $produit->libelle = "Libelle";
- $produit->description = "Description";
+ $produit->libelle = $langs->trans("Label");
+ $produit->description = $langs->trans("Description");
$produit->price = rand(1,10000);
$produit->tva_tx = "19.6";
$produit->create($user);
diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php
index 45a91130955..d89f2efd311 100644
--- a/htdocs/admin/system/index.php
+++ b/htdocs/admin/system/index.php
@@ -89,7 +89,7 @@ if ($result)
$row = $db->fetch_row();
}
print "| Version | " . $row[1] . " | \n";
-print "| Type | " . $conf->db->type . " | \n";
+print "| ".$langs->trans("Type")." | " . $conf->db->type . " | \n";
print "| Host | " . $conf->db->host . " | \n";
print "| User | " . $conf->db->user . " | \n";
print "| Pass | " . $conf->db->pass . " | \n";
diff --git a/htdocs/admin/system/mysql-tables-contraintes.php b/htdocs/admin/system/mysql-tables-contraintes.php
index 7bb7339f132..037b3ca8f95 100644
--- a/htdocs/admin/system/mysql-tables-contraintes.php
+++ b/htdocs/admin/system/mysql-tables-contraintes.php
@@ -33,7 +33,7 @@ print ' ';
print '';
print '';
print '| Tables | ';
-print 'Type | ';
+print ''.$langs->trans("Type").' | ';
print 'Contraintes | ';
print " \n";
diff --git a/htdocs/admin/system/mysql-tables.php b/htdocs/admin/system/mysql-tables.php
index 8125f047db4..a8fed76dd11 100644
--- a/htdocs/admin/system/mysql-tables.php
+++ b/htdocs/admin/system/mysql-tables.php
@@ -38,7 +38,7 @@ print ' ';
print '';
print '';
print '| Nom de la table | ';
-print 'Type | ';
+print ''.$langs->trans("Type").' | ';
print 'Format lignes | ';
print 'Nb enr. | ';
print 'Avg_row_length | ';
diff --git a/htdocs/boutique/commande/ca.php b/htdocs/boutique/commande/ca.php
index 7a4f45d90a8..1e45435253b 100644
--- a/htdocs/boutique/commande/ca.php
+++ b/htdocs/boutique/commande/ca.php
@@ -40,8 +40,8 @@ $offset = $limit * $page ;
print_barre_liste("Liste des commandes", $page, "ca.php");
-print '';
-print '| Description | ';
+print '';
+print '| '.$langs->trans("Description").' | ';
print ''.$langs->trans("LastName").' | ';
$sql = "SELECT sum(t.value) as value";
@@ -57,11 +57,11 @@ if ( $db->query($sql) )
{
$objp = $db->fetch_object(0);
$var=!$var;
- print "";
+ print " ";
print '| Somme des commandes | ';
print ''.price($objp->value).' | ';
- print " \n";
+ print "\n";
$i++;
}
@@ -85,7 +85,7 @@ if ( $db->query($sql) )
{
$objp = $db->fetch_object(0);
$var=!$var;
- print "";
+ print " ";
print '| Somme des frais de port | ';
print ''.price($objp->value).' | ';
$i++;
diff --git a/htdocs/boutique/commande/index.php b/htdocs/boutique/commande/index.php
index a046ba9af62..625fd445e0a 100644
--- a/htdocs/boutique/commande/index.php
+++ b/htdocs/boutique/commande/index.php
@@ -55,27 +55,23 @@ if ( $db->query($sql) )
print "| Numéro | ".$langs->trans("Date")." | ";
print_liste_field_titre("Client","commande.php", "customers_name");
print ' | '.$langs->trans("Total").' | ';
- // print 'Statut | ';
- // print ' | ';
- print " \n";
+ print "\n";
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object( $i);
$var=!$var;
- print "";
+ print " ";
print ' ';
print $objp->orders_id ." | ";
print strftime("%d %B %Y",$objp->date_purchased).' | ';
- print ''.$objp->customers_name." | \n";
+ print ''.$objp->customers_name." | \n";
print ''.price($objp->value).' | ';
- // print ''.$objp->orders_status.' | ';
- // print ''.$objp->orders_date_finished.' | ';
- print " \n";
+ print "\n";
$i++;
}
- print " ";
+ print " ";
$db->free();
}
else
diff --git a/htdocs/boutique/livre/fiche.php b/htdocs/boutique/livre/fiche.php
index c6aa77729f8..b79119a4109 100644
--- a/htdocs/boutique/livre/fiche.php
+++ b/htdocs/boutique/livre/fiche.php
@@ -184,7 +184,7 @@ if ($action == 'create')
$htmls->select_array("editeurid", $edits->liste_array(), $livre->editeurid);
print " ";
- print "| Description | ";
+ print ' | | '.$langs->trans("Description").' | ';
print ' | ";
print '| | | ';
@@ -251,9 +251,9 @@ else
print '';
print "";
print '| '.$langs->trans("Ref").' | | ';
- print "Description | ";
+ print ''.$langs->trans("Description").' | ';
- print "| Statut | $livre->status_text";
+ print ' | | '.$langs->trans("Status").' | '.$livre->status_text;
if ($livre->status == 0)
{
print ' Changer';
@@ -350,9 +350,9 @@ else
print '';
print "";
print '| '.$langs->trans("Ref").' | '.$livre->ref.' | ';
- print 'Description | ';
+ print ''.$langs->trans("Description").' | ';
print 'Catégories | ';
- print "| Statut | $livre->status_text";
+ print ' | | '.$langs->trans("Status").' | '.$livre->status_text;
if ($livre->status == 0)
{
print ' Changer';
diff --git a/htdocs/boutique/newsletter/index.php b/htdocs/boutique/newsletter/index.php
index bab5a69cec9..480677aab31 100644
--- a/htdocs/boutique/newsletter/index.php
+++ b/htdocs/boutique/newsletter/index.php
@@ -47,34 +47,34 @@ if ( $db->query($sql) )
{
$num = $db->num_rows();
$i = 0;
- print "";
- print "";
+ print "";
+ print "| ";
print_liste_field_titre("Sujet","index.php", "email_subject");
print " | ";
- print 'Statut | ';
+ print ''.$langs->trans("Status").' | ';
print 'Nb envois | ';
- print " \n";
+ print "\n";
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object( $i);
$var=!$var;
- print "";
+ print " ";
print ' ';
- print "rowid\">$objp->email_subject | \n";
- print ''.$objp->status.' | ';
- print ''.$objp->nbsent.' | ';
- print " \n";
+ print "rowid\">$objp->email_subject\n";
+ print ''.$objp->status.' | ';
+ print ''.$objp->nbsent.' | ';
+ print "\n";
$i++;
}
- print " ";
+ print " | ";
$db->free();
}
else
{
- print $db->error();
+ dolibarr_print_error($db);
}
$db->close();
diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index 08dd7e467a4..78f65036ff8 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -332,7 +332,7 @@ if ($_GET["id"])
print '';
print '';
- print '| Type | '.$act->type.' | ';
+ print '| '.$langs->trans("Type").' | '.$act->type.' | ';
print '| Société | ';
print ''.$act->societe->nom.' | ';
@@ -362,7 +362,7 @@ if ($_GET["id"])
print_titre ("Action commerciale");
print '";
@@ -897,7 +897,7 @@ if ($_GET["propalid"])
print_liste_field_titre_new ($langs->trans("Date"),"propal.php","p.datep","","&socidp=$socidp&viewstatut=$viewstatut", 'width="25%" align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ($langs->trans("Price"),"propal.php","p.price","","&socidp=$socidp&viewstatut=$viewstatut", ' width="20%" align="right"',$sortfield);
- print_liste_field_titre_new ("Statut","propal.php","p.fk_statut","","&socidp=$socidp&viewstatut=$viewstatut",'width="10%" align="center"',$sortfield);
+ print_liste_field_titre_new ($langs->trans("Status"),"propal.php","p.fk_statut","","&socidp=$socidp&viewstatut=$viewstatut",'width="10%" align="center"',$sortfield);
print " \n";
$var=True;
diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php
index 0241c86cc76..7e0726742dc 100644
--- a/htdocs/comm/propal/note.php
+++ b/htdocs/comm/propal/note.php
@@ -96,7 +96,7 @@ if ($_GET["propalid"])
$url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$societe->id;
}
print ''.$societe->nom.'';
- print 'Statut | '.$propal->statut_libelle.' | ';
+ print ''.$langs->trans("Status").' | '.$propal->statut_libelle.' | ';
print '| Date | '.strftime("%A %d %B %Y",$propal->date);
if ($propal->fin_validite)
diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php
index b4ec8afd73c..991861cd9dc 100644
--- a/htdocs/comm/prospect/fiche.php
+++ b/htdocs/comm/prospect/fiche.php
@@ -125,7 +125,7 @@ if ($socid > 0)
print ' | | Siret | '.$societe->siret.' | ';
print 'Capital | '.$societe->capital.' | ';
- print "| Type | $societe->typent | Effectif | $societe->effectif | ";
+ print "| ".$langs->trans("Type")." | $societe->typent | Effectif | $societe->effectif | ";
if ($societe->url)
{
@@ -138,7 +138,7 @@ if ($socid > 0)
}
print "| Forme juridique | $societe->forme_juridique | ";
- print "| Statut | $societe->statut_commercial | ";
+ print ' | '.$langs->trans("Status").' | '.$societe->statut_commercial.' | ';
print ' ';
print '';
print ' ';
diff --git a/htdocs/comm/prospect/prospects.php b/htdocs/comm/prospect/prospects.php
index 76c16bce848..099afaa66a2 100644
--- a/htdocs/comm/prospect/prospects.php
+++ b/htdocs/comm/prospect/prospects.php
@@ -154,7 +154,7 @@ if ($result)
print " | ";
print_liste_field_titre("Département","prospects.php","s.fk_departement");
print " | ";
- print_liste_field_titre("Statut","prospects.php","s.fk_stcomm");
+ print_liste_field_titre($langs->trans("Status"),"prospects.php","s.fk_stcomm");
print " | ";
print_liste_field_titre("Insertion","prospects.php","s.datec");
print ' | | ';
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 86cc6a7d596..c32aeb31d6d 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -547,7 +547,7 @@ else
if ($num)
{
print ' ';
- print '| Description | ';
+ print ''.$langs->trans("Description").' | ';
print 'Tva | ';
print 'Quantité | ';
print 'Remise | ';
@@ -650,7 +650,7 @@ else
print " ';
print '';
- print '| YYYY MMDD | | Description | 0000.00 | 0000.00 | ';
+ print 'YYYY MMDD | | '.$langs->trans("Description").' | 0000.00 | 0000.00 | ';
print ' | ';
print ' ';
}
diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php
index f18020c9c5d..4f892a42e5e 100644
--- a/htdocs/compta/bank/budget.php
+++ b/htdocs/compta/bank/budget.php
@@ -42,7 +42,7 @@ if ($_GET["bid"] == 0)
print '';
print "";
- echo '| Description | Nb | '.$langs->trans("Total").' | Moyenne | ';
+ print ''.$langs->trans("Description").' | Nb | '.$langs->trans("Total").' | Moyenne | ';
print " \n";
$sql = "SELECT sum(d.amount) as somme, count(*) as nombre, c.label, c.rowid ";
@@ -100,7 +100,7 @@ else
print '';
print "";
- echo '| Date | Description | Montant | | ';
+ print 'Date | '.$langs->trans("Description").' | Montant | | ';
print " \n";
$sql = "SELECT d.amount, d.label, ".$db->pdate("d.dateo")." as do, d.rowid";
diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php
index 302beb7f8a4..2c6a77d68a9 100644
--- a/htdocs/compta/bank/categ.php
+++ b/htdocs/compta/bank/categ.php
@@ -55,7 +55,7 @@ print ' | | | | |