From 929750a089283ea80b81e0097f6b50cd3dd32dc4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Jul 2004 13:46:12 +0000 Subject: [PATCH] Trad: Traduction de toutes les chaines "Mois" dans toutes les pages. --- htdocs/compta/bank/annuel.php | 4 +-- htdocs/compta/caisse/annuel.php | 4 +-- htdocs/compta/pmt.php | 13 ++++----- htdocs/compta/pointmort.php | 7 ++--- htdocs/compta/resultat/index.php | 4 +-- htdocs/compta/stats/comp.php | 6 ++--- htdocs/compta/stats/exercices.php | 44 +++++++++++++++---------------- htdocs/compta/stats/index.php | 2 +- htdocs/compta/stats/prev.php | 2 +- htdocs/fichinter/rapport.php | 5 ++-- 10 files changed, 47 insertions(+), 44 deletions(-) diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index 5eb3c4ba0e2..843e4d9ebb1 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -86,8 +86,8 @@ if ($db->query($sql)) } -print ''; -print ''; +print '
Mois
'; +print ''; $year_current = strftime("%Y",time()); diff --git a/htdocs/compta/caisse/annuel.php b/htdocs/compta/caisse/annuel.php index f2cf62c4ac1..849cfb2c476 100644 --- a/htdocs/compta/caisse/annuel.php +++ b/htdocs/compta/caisse/annuel.php @@ -86,8 +86,8 @@ if ($db->query($sql)) } } -print '
'.$langs->trans("Month").'
'; -print ''; +print '
Mois
'; +print ''; if ($year_current < (MAIN_START_YEAR + 2)) diff --git a/htdocs/compta/pmt.php b/htdocs/compta/pmt.php index 3a433686b0c..bcd57d776b0 100644 --- a/htdocs/compta/pmt.php +++ b/htdocs/compta/pmt.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * $Id$ * $Source$ @@ -42,7 +43,7 @@ if ($action == 'update') { -print "
'.$langs->trans("Month").'
"; +print "
"; print "
"; $sql = "SELECT amount, int(month) as dm FROM ".MAIN_DB_PREFIX."pointmort ORDER BY month DESC"; @@ -53,11 +54,11 @@ if ($result) { - print "

"; - print ""; - print ""; - print ""; - print "\n"; + print "
MoisMontant
"; + print ""; + print ""; + print ""; + print "\n"; $bc[0]="bgcolor=\"#90c090\""; $bc[1]="bgcolor=\"#b0e0b0\""; diff --git a/htdocs/compta/pointmort.php b/htdocs/compta/pointmort.php index fcc6b1fc2ca..ff1eb24545d 100644 --- a/htdocs/compta/pointmort.php +++ b/htdocs/compta/pointmort.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * 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 @@ -75,10 +76,10 @@ function ppt ($db) { $ptmt = pm($db); - print "

".$langs->trans("Month")."Montant
"; - print ""; + print "
"; + print ""; print ""; - print ""; + print ""; print ""; print ""; print ""; diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index dbe94295589..a0cc5f576d7 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -96,8 +96,8 @@ else { print $db->error(); } -print '
 Mois".$langs->trans("Month")."CAPoint mortDelta
'; -print ''; +print '
Mois
'; +print ''; if ($year_current < (MAIN_START_YEAR + 2)) diff --git a/htdocs/compta/stats/comp.php b/htdocs/compta/stats/comp.php index 7ef91ace0dc..d864470c0c1 100644 --- a/htdocs/compta/stats/comp.php +++ b/htdocs/compta/stats/comp.php @@ -175,7 +175,7 @@ function pt ($db, $sql, $year) { $i = 0; $total = 0 ; print '
'.$langs->trans("Month").'
'; print ""; - print ""; + print ''; print "\n"; $var=True; $month = 1 ; @@ -282,8 +282,8 @@ function ppt ($db, $year, $socidp) print '
Mois'.$langs->trans("Month").'Montant
'; print ""; - print ""; - print ""; + print ''; + print ''; print "\n"; $var = 1 ; diff --git a/htdocs/compta/stats/exercices.php b/htdocs/compta/stats/exercices.php index 6ee85bf70af..1f6e08ab22b 100644 --- a/htdocs/compta/stats/exercices.php +++ b/htdocs/compta/stats/exercices.php @@ -109,10 +109,10 @@ function pt ($db, $sql, $year) { if ($result) { $num = $db->num_rows(); $i = 0; $total = 0 ; - print '

MoisMontant'.$langs->trans("Month").''.$langs->trans("Amount").'
'; - print ""; - print ""; - print "\n"; + print '
MoisMontant
'; + print ""; + print ''; + print ''; $var=True; $month = 1 ; @@ -122,22 +122,22 @@ function pt ($db, $sql, $year) { if ($obj->dm > $month ) { for ($b = $month ; $b < $obj->dm ; $b++) { - print ""; - print "\n"; - print "\n"; - print "\n"; + print ""; + print "\n"; + print "\n"; + print "\n"; $var=!$var; $ca[$b] = 0; } } if ($obj->sum > 0) { - print ""; + print ""; print "\n"; - print "\n"; + print strftime("%B",mktime(12,0,0,$obj->dm, 1, $year))."\n"; + print "\n"; - print "\n"; + print "\n"; $month = $obj->dm + 1; $ca[$obj->dm] = $obj->sum; $total = $total + $obj->sum; @@ -154,10 +154,10 @@ function pt ($db, $sql, $year) { if ($beg <= 12 ) { for ($b = $beg + 1 ; $b < 13 ; $b++) { $var=!$var; - print ""; - print "\n"; - print "\n"; - print "\n"; + print ""; + print "\n"; + print "\n"; + print "\n"; $ca[$b] = 0; } } @@ -219,12 +219,12 @@ function ppt ($db, $year, $socidp) print "
'.$langs->trans("Month").''.$langs->trans("Amount").'
".strftime("%B",mktime(12,0,0,$b, 1, $year))."0
".strftime("%B",mktime(12,0,0,$b, 1, $year))."0
"; - print strftime("%B",mktime(12,0,0,$obj->dm, 1, $year))."".price($obj->sum)."".price($obj->sum)."
".strftime("%B",mktime(12,0,0,$b, 1, $year))."0
".strftime("%B",mktime(12,0,0,$b, 1, $year))."0
"; - print '

'; - print ""; - print ""; - print ""; - print ''; - print "\n"; + print '
MoisMontantCumul
'; + print ""; + print ''; + print ''; + print ''; + print "\n"; $var = 1 ; for ($b = 1 ; $b <= 12 ; $b++) diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php index 7944f7b39ad..881ca91602e 100644 --- a/htdocs/compta/stats/index.php +++ b/htdocs/compta/stats/index.php @@ -67,7 +67,7 @@ if ($result) } print '
'.$langs->trans("Month").''.$langs->trans("Amount").'Cumul
'; -print ''; +print ''; $year_current = strftime("%Y",time()); $nbyears = 3; diff --git a/htdocs/compta/stats/prev.php b/htdocs/compta/stats/prev.php index e2105d700bd..6b54270240b 100644 --- a/htdocs/compta/stats/prev.php +++ b/htdocs/compta/stats/prev.php @@ -103,7 +103,7 @@ if ($socidp) } $sql .= " GROUP BY dm DESC"; -pt($db, $sql, "Mois"); +pt($db, $sql, $langs->trans("Month")); print '
Mois
'.$langs->trans("Month").''; diff --git a/htdocs/fichinter/rapport.php b/htdocs/fichinter/rapport.php index a2fc4be2395..19cbff5b9c9 100644 --- a/htdocs/fichinter/rapport.php +++ b/htdocs/fichinter/rapport.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2003 Xavier DUTOIT + * Copyright (C) 2004 Laurent Destailleur * * 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 @@ -66,7 +67,7 @@ if (empty($YY)) echo "
"; echo "\n
"; echo ""; -echo "Mois "; +echo $langs->trans("Month")." "; echo " Année "; echo ""; echo "";