From 43b987cf261f71b772245cbc50a01f6840cfbbbe Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sun, 30 Jan 2005 00:50:47 +0000
Subject: [PATCH] Trad: Traduction des menus compta

---
 htdocs/compta/bank/pre.inc.php        |  4 ++--
 htdocs/compta/charges/pre.inc.php     |  7 ++++---
 htdocs/compta/deplacement/pre.inc.php |  2 +-
 htdocs/compta/export/pre.inc.php      |  2 +-
 htdocs/compta/facture/pre.inc.php     |  4 ++--
 htdocs/compta/paiement/pre.inc.php    |  9 +++++----
 htdocs/compta/param/pre.inc.php       |  2 +-
 htdocs/compta/pre.inc.php             |  9 ++-------
 htdocs/compta/prelevement/pre.inc.php |  5 +++--
 htdocs/compta/resultat/pre.inc.php    |  6 +++---
 htdocs/compta/sociales/pre.inc.php    |  7 ++++---
 htdocs/compta/stats/pre.inc.php       |  6 +++---
 htdocs/compta/tva/pre.inc.php         |  9 +++++----
 htdocs/compta/ventilation/pre.inc.php |  2 --
 htdocs/compta/voyage/pre.inc.php      | 13 +++++++------
 15 files changed, 43 insertions(+), 44 deletions(-)

diff --git a/htdocs/compta/bank/pre.inc.php b/htdocs/compta/bank/pre.inc.php
index 3da77a80c4e..7ce4351b09d 100644
--- a/htdocs/compta/bank/pre.inc.php
+++ b/htdocs/compta/bank/pre.inc.php
@@ -1,7 +1,7 @@
 <?php
 /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  * Copyright (C) 2003      Jean-Louis Bergamo   <jlb@j1b.org>
- * Copyright (C) 2004      Laurent Destailleur  <eldy@users.sourceforge.net>
+ * Copyright (C) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -72,7 +72,7 @@ function llxHeader($head = "")
 
   if ($user->rights->banque->modifier)
     {
-      $menu->add_submenu(DOL_URL_ROOT."/compta/bank/virement.php","Virement");
+      $menu->add_submenu(DOL_URL_ROOT."/compta/bank/virement.php",$langs->trans("Virements"));
     }
 
   if ($user->rights->banque->configurer)
diff --git a/htdocs/compta/charges/pre.inc.php b/htdocs/compta/charges/pre.inc.php
index cb47d9ce9ae..101b51a46b6 100644
--- a/htdocs/compta/charges/pre.inc.php
+++ b/htdocs/compta/charges/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005      Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,7 +24,7 @@ require("../../main.inc.php");
 
 function llxHeader($head = "")
 {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
@@ -34,9 +35,9 @@ function llxHeader($head = "")
 
   $menu = new Menu();
 
-  $menu->add("index.php","Charges");
+  $menu->add("index.php",$langs->trans("Charges"));
 
-  $menu->add_submenu(DOL_URL_ROOT."/compta/sociales/index.php","Prest. Sociales");
+  $menu->add_submenu(DOL_URL_ROOT."/compta/sociales/index.php",$langs->trans("SocialContributions"));
 
   left_menu($menu->liste);
 }
diff --git a/htdocs/compta/deplacement/pre.inc.php b/htdocs/compta/deplacement/pre.inc.php
index 8a1677b4b8c..b91c1f2aabb 100644
--- a/htdocs/compta/deplacement/pre.inc.php
+++ b/htdocs/compta/deplacement/pre.inc.php
@@ -28,7 +28,7 @@ $deplacement_type[0] = "voiture";
 //$deplacement_type[2] = "avion";
 
 function llxHeader($head = "") {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
diff --git a/htdocs/compta/export/pre.inc.php b/htdocs/compta/export/pre.inc.php
index d6cde3c3e88..db756f7a262 100644
--- a/htdocs/compta/export/pre.inc.php
+++ b/htdocs/compta/export/pre.inc.php
@@ -44,7 +44,7 @@ function llxHeader($head = "", $title="", $help_url='')
   $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
 
   $menu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"));
-  $menu->add_submenu(DOL_URL_ROOT."/compta/export/liste.php",$langs->trans("Liste"));
+  $menu->add_submenu(DOL_URL_ROOT."/compta/export/liste.php",$langs->trans("List"));
 
 
   left_menu($menu->liste, $help_url);
diff --git a/htdocs/compta/facture/pre.inc.php b/htdocs/compta/facture/pre.inc.php
index 0e320ff1a84..1bc90330e37 100644
--- a/htdocs/compta/facture/pre.inc.php
+++ b/htdocs/compta/facture/pre.inc.php
@@ -32,7 +32,7 @@ require("../../main.inc.php");
 require_once("../../facture.class.php");
 
 function llxHeader($head = "", $title="", $help_url='') {
-  global $conf, $langs;
+  global $user, $conf, $langs;
   $langs->load("companies");
   $langs->load("bills");
   /*
@@ -49,7 +49,7 @@ function llxHeader($head = "", $title="", $help_url='') {
   $menu->add(DOL_URL_ROOT."/compta/facture.php",$langs->trans("Bills"));
   $menu->add_submenu(DOL_URL_ROOT."/compta/facture/impayees.php",$langs->trans("Unpayed"));
 
-  $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("Pr�l�vements"));
+  $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrder"));
 
   left_menu($menu->liste, $help_url);
 }
diff --git a/htdocs/compta/paiement/pre.inc.php b/htdocs/compta/paiement/pre.inc.php
index 9d9364d6f6f..8dbbf54376c 100644
--- a/htdocs/compta/paiement/pre.inc.php
+++ b/htdocs/compta/paiement/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005 Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +23,7 @@
 require("../../main.inc.php");
 
 function llxHeader($head = "") {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
@@ -33,13 +34,13 @@ function llxHeader($head = "") {
 
   $menu = new Menu();
 
-  $menu->add("liste.php","Liste");
+  $menu->add("liste.php",$langs->trans("List"));
 
   $menu->add("rapport.php","Rapports");
 
-  $menu->add("../facture.php","Factures");
+  $menu->add("../facture.php",$langs->trans("Bills"));
 
-  $menu->add_submenu("liste.php","Paiements");
+  $menu->add_submenu("liste.php",$langs->trans("Payments"));
 
   left_menu($menu->liste);
 }
diff --git a/htdocs/compta/param/pre.inc.php b/htdocs/compta/param/pre.inc.php
index b75c374d111..d8ec1621b06 100644
--- a/htdocs/compta/param/pre.inc.php
+++ b/htdocs/compta/param/pre.inc.php
@@ -30,7 +30,7 @@ require("../../main.inc.php");
 
 function llxHeader($head = "", $title="", $help_url='')
 {
-  global $user, $langs;
+  global $user, $conf, $langs;
   
   $user->getrights('banque');
   
diff --git a/htdocs/compta/pre.inc.php b/htdocs/compta/pre.inc.php
index a38936f1891..d22d5bf495a 100644
--- a/htdocs/compta/pre.inc.php
+++ b/htdocs/compta/pre.inc.php
@@ -96,7 +96,7 @@ function llxHeader($head = "", $title="", $help_url='')
     
   if ($conf->compta->enabled)
     {
-      $menu->add(DOL_URL_ROOT."/compta/charges/index.php","Charges");
+      $menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
     }
 
 
@@ -107,16 +107,11 @@ function llxHeader($head = "", $title="", $help_url='')
       $menu->add(DOL_URL_ROOT."/compta/bank/",$langs->trans("Bank"));
     }
   
-  if ($conf->caisse->enabled)
-    {
-      $menu->add(DOL_URL_ROOT."/compta/caisse/index.php","Caisses");
-    }
-
   $menu->add(DOL_URL_ROOT."/compta/stats/","CA / R�sultats");
 
   if ($conf->prelevement->enabled)
     {
-      $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("Withdrawls"));
+      $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrder"));
     }
 
   $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
diff --git a/htdocs/compta/prelevement/pre.inc.php b/htdocs/compta/prelevement/pre.inc.php
index 41861a44106..b4c1897bedf 100644
--- a/htdocs/compta/prelevement/pre.inc.php
+++ b/htdocs/compta/prelevement/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005      Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -40,10 +41,10 @@ function llxHeader($head = "", $title="", $help_url='')
 
   if ($conf->prelevement->enabled)
     {
-      $menu->add(DOL_URL_ROOT."/compta/prelevement/","Pr�l�vements");
+      $menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrder"));
       $menu->add_submenu(DOL_URL_ROOT."/compta/prelevement/bons.php","Bons");
       $menu->add_submenu(DOL_URL_ROOT."/compta/prelevement/rejets.php","Rejets");
-      $menu->add_submenu(DOL_URL_ROOT."/compta/prelevement/stats.php","Statistiques");
+      $menu->add_submenu(DOL_URL_ROOT."/compta/prelevement/stats.php",$langs->trans("Statistics"));
 
       $menu->add(DOL_URL_ROOT."/compta/prelevement/demandes.php","Demandes");
       $menu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php","A Traiter");
diff --git a/htdocs/compta/resultat/pre.inc.php b/htdocs/compta/resultat/pre.inc.php
index 3da5c3e735f..275c8ee2ac4 100644
--- a/htdocs/compta/resultat/pre.inc.php
+++ b/htdocs/compta/resultat/pre.inc.php
@@ -23,7 +23,7 @@
 require("../../main.inc.php");
 
 function llxHeader($head = "") {
-  global $conf;
+  global $user, $conf, $langs;
 
   /*
    *
@@ -46,8 +46,8 @@ function llxHeader($head = "") {
 		$menu->add_submenu(DOL_URL_ROOT."/compta/stats/comp.php","Transform�");
 	}
 	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/exercices.php","Evolution");
-	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/casoc.php","Par soci�t�");
-	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/cabyuser.php","Par utilisateur");
+	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/casoc.php",$langs->trans("ByCompanies"));
+	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/cabyuser.php",$langs->trans("ByUsers"));
 
   left_menu($menu->liste);
 }
diff --git a/htdocs/compta/sociales/pre.inc.php b/htdocs/compta/sociales/pre.inc.php
index 978bc43e48f..320eaad333f 100644
--- a/htdocs/compta/sociales/pre.inc.php
+++ b/htdocs/compta/sociales/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005      Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,7 +24,7 @@ require("../../main.inc.php");
 
 function llxHeader($head = "")
 {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
@@ -34,8 +35,8 @@ function llxHeader($head = "")
 
   $menu = new Menu();
 
-  $menu->add("../charges/","Charges");
-  $menu->add_submenu("index.php","Prest. Sociales");
+  $menu->add("../charges/",$langs->trans("Charges"));
+  $menu->add_submenu("index.php",$langs->trans("SocialContributions"));
   //  $menu->add_submenu("/compta/sociales/conf.php","Conf");
 
   left_menu($menu->liste);
diff --git a/htdocs/compta/stats/pre.inc.php b/htdocs/compta/stats/pre.inc.php
index 4aa0880db85..5e050d19846 100644
--- a/htdocs/compta/stats/pre.inc.php
+++ b/htdocs/compta/stats/pre.inc.php
@@ -23,7 +23,7 @@
 require("../../main.inc.php");
 
 function llxHeader($head = "") {
-	global $conf;
+	global $user, $conf, $langs;
 
 	/*
 	*
@@ -46,8 +46,8 @@ function llxHeader($head = "") {
 		$menu->add_submenu(DOL_URL_ROOT."/compta/stats/comp.php","Transform�");
 	}
 	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/exercices.php","Evolution");
-	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/casoc.php","Par soci�t�");
-	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/cabyuser.php","Par utilisateur");
+	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/casoc.php",$langs->trans("ByCompanies"));
+	$menu->add_submenu(DOL_URL_ROOT."/compta/stats/cabyuser.php",$langs->trans("ByUsers"));
 	
 	left_menu($menu->liste);
 }
diff --git a/htdocs/compta/tva/pre.inc.php b/htdocs/compta/tva/pre.inc.php
index c3e25018235..79afb9830b7 100644
--- a/htdocs/compta/tva/pre.inc.php
+++ b/htdocs/compta/tva/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005      Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +23,7 @@
 require("../../main.inc.php");
 
 function llxHeader($head = "") {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
@@ -33,10 +34,10 @@ function llxHeader($head = "") {
 
   $menu = new Menu();
 
-  $menu->add("index.php","TVA");
+  $menu->add("index.php",$langs->trans("VAT"));
 
-  $menu->add_submenu("reglement.php","R�glements");
-  $menu->add_submenu("fiche.php?action=create","Nouveau r�glement");
+  $menu->add_submenu("reglement.php",$langs->trans("Payments"));
+  $menu->add_submenu("fiche.php?action=create",$langs->trans("NewPayment"));
 
   left_menu($menu->liste);
 }
diff --git a/htdocs/compta/ventilation/pre.inc.php b/htdocs/compta/ventilation/pre.inc.php
index be6e47e2882..71440f8790a 100644
--- a/htdocs/compta/ventilation/pre.inc.php
+++ b/htdocs/compta/ventilation/pre.inc.php
@@ -38,8 +38,6 @@ function llxHeader($head = "", $title="", $help_url='')
 
   $menu = new Menu();
 
-  // Les recettes
-
   $menu->add(DOL_URL_ROOT."/compta/clients.php", $langs->trans("Customers"));
 
   $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
diff --git a/htdocs/compta/voyage/pre.inc.php b/htdocs/compta/voyage/pre.inc.php
index 9e45fa0950c..8923355074f 100644
--- a/htdocs/compta/voyage/pre.inc.php
+++ b/htdocs/compta/voyage/pre.inc.php
@@ -1,5 +1,6 @@
 <?php
 /* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
+ * Copyright (C) 2005      Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * $Id$
  * $Source$
@@ -22,7 +23,7 @@
 require("../../main.inc.php");
 
 function llxHeader($head = "") {
-  global $user, $conf;
+  global $user, $conf, $langs;
 
 
   /*
@@ -33,16 +34,16 @@ function llxHeader($head = "") {
 
   $menu = new Menu();
 
-  $menu->add("index.php","Voyages");
+  $menu->add("index.php",$langs->trans("Trips"));
 
-  $menu->add_submenu("index.php","Voyages");
+  $menu->add_submenu("index.php",$langs->trans("Trips"));
   $menu->add_submenu("bilan.php","Bilan");
   $menu->add_submenu("reduc.php","Reduc");
-  $menu->add_submenu("voyage.php","Voyage");
+  $menu->add_submenu("voyage.php",$langs->trans("Trip"));
 
-  $menu->add("/compta/facture.php","Factures");
+  $menu->add("/compta/facture.php",$langs->trans("Bills"));
 
-  $menu->add("/compta/bank/index.php","Bank");
+  $menu->add("/compta/bank/index.php",$langs->trans("Bank"));
 
   left_menu($menu->liste);
 
-- 
GitLab