phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r712 - in branches/rel672n: amortis/include/template imp


From: phpcompta-dev
Subject: [Phpcompta-dev] r712 - in branches/rel672n: amortis/include/template import_account/include import_account/include/template
Date: Thu, 13 Feb 2014 20:56:17 +0100 (CET)

Author: danydb
Date: 2014-02-13 20:56:17 +0100 (Thu, 13 Feb 2014)
New Revision: 712

Modified:
   branches/rel672n/amortis/include/template/listing_histo.php
   branches/rel672n/amortis/include/template/listing_year.php
   branches/rel672n/amortis/include/template/material_add.php
   branches/rel672n/amortis/include/template/material_detail.php
   branches/rel672n/amortis/include/template/material_display.php
   branches/rel672n/amortis/include/template/material_listing.php
   branches/rel672n/amortis/include/template/util_generate.php
   branches/rel672n/import_account/include/class_impacc_operation.php
   branches/rel672n/import_account/include/class_import_card.php
   branches/rel672n/import_account/include/class_sql_impacc.php
   branches/rel672n/import_account/include/imd_operation.inc.php
   branches/rel672n/import_account/include/imd_parameter.inc.php
   branches/rel672n/import_account/include/template/input_file.php
   branches/rel672n/import_account/include/template/parameter.php
   branches/rel672n/import_account/include/template/parameter_tva_add.php
   branches/rel672n/import_account/include/template/test_file.php
   branches/rel672n/import_account/include/template/test_operation.php
   branches/rel672n/import_account/include/template/upload_operation.php
Log:
Translation correction

Modified: branches/rel672n/amortis/include/template/listing_histo.php
===================================================================
--- branches/rel672n/amortis/include/template/listing_histo.php 2014-02-13 
19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/listing_histo.php 2014-02-13 
19:56:17 UTC (rev 712)
@@ -1,5 +1,5 @@
 <div class="content" style="width:80%;margin-left:10%">
-   <!-- <h2 class="info"><?php echo_("Historique")?></h2> -->
+   <!-- <h2 class="info"><?php echo _("Historique")?></h2> -->
 <form method="POST">
 <?php
 echo HtmlInput::hidden('sa',$_REQUEST['sa']);

Modified: branches/rel672n/amortis/include/template/listing_year.php
===================================================================
--- branches/rel672n/amortis/include/template/listing_year.php  2014-02-13 
19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/listing_year.php  2014-02-13 
19:56:17 UTC (rev 712)
@@ -5,16 +5,16 @@
 </style>
 <table class="result">
 <tr>
-  <th><?php echo_("Code")?></th>
-  <th><?php echo_("Description")?></th>
-  <th><?php echo_("Date d'acquisition")?></th>
-  <th><?php echo_("Année d'achat")?></th>
-  <th style="text-align:right"><?php echo_("Montant à l'achat")?></th>
-  <th style="text-align:right"><?php echo_("Nombre amortissement")?></th>
-  <th style="text-align:right"><?php echo_("Montant à amortir")?></th>
-  <th style="text-align:right"><?php echo_("Amortissement")?></th>
-  <th style="text-align:right"><?php echo_("Pourcentage")?></th>
-  <th style="text-align:right"><?php echo_("Reste à amortir")?></th>
+  <th><?php echo _("Code")?></th>
+  <th><?php echo _("Description")?></th>
+  <th><?php echo _("Date d'acquisition")?></th>
+  <th><?php echo _("Année d'achat")?></th>
+  <th style="text-align:right"><?php echo _("Montant à l'achat")?></th>
+  <th style="text-align:right"><?php echo _("Nombre amortissement")?></th>
+  <th style="text-align:right"><?php echo _("Montant à amortir")?></th>
+  <th style="text-align:right"><?php echo _("Amortissement")?></th>
+  <th style="text-align:right"><?php echo _("Pourcentage")?></th>
+  <th style="text-align:right"><?php echo _("Reste à amortir")?></th>
 </tr>
 <?php 
 $tot_amort=0;$tot_net=0;bcscale(2);

Modified: branches/rel672n/amortis/include/template/material_add.php
===================================================================
--- branches/rel672n/amortis/include/template/material_add.php  2014-02-13 
19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/material_add.php  2014-02-13 
19:56:17 UTC (rev 712)
@@ -1,37 +1,37 @@
 <h2 class="info">Ajout de matériel</h2>
 <form method="POST" onsubmit="save_new_material(this);return false;">
-   <span style="text-align:center;display:block;font-size:2em" 
id="p_card_label"  ><?php echo_("Nouveau matériel")?></span>
+   <span style="text-align:center;display:block;font-size:2em" 
id="p_card_label"  ><?php echo _("Nouveau matériel")?></span>
 <table>
 <tr>
-   <td><?php echo_("Fiche")?></td>
+   <td><?php echo _("Fiche")?></td>
        <td><?php echo $p_card->input()?><?php echo $p_card->search()?></td>
 </tr>
 <tr>
-   <td><?php echo_("Date d'acquisition")?></td>
+   <td><?php echo _("Date d'acquisition")?></td>
        <td><?php echo $p_date->input()?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Montant à amortir")?></td>
+   <td><?php echo _("Montant à amortir")?></td>
        <td><?php echo $p_amount->input()?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Année comptable d'achat")?></td>
+   <td><?php echo _("Année comptable d'achat")?></td>
        <td> <?php echo $p_year->input();?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste de charge dotations amortissement 
(débit)")?></td>
+       <td><?php echo _("Poste de charge dotations amortissement 
(débit)")?></td>
        <td><?php echo $p_deb->input()?></td>
        <td><?php echo $deb_span->input()?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste amortissement en contrepartie")?></td>
+       <td><?php echo _("Poste amortissement en contrepartie")?></td>
        <td><?php echo $p_cred->input();?></td>
        <td><?php echo $cred_span->input();?></td>
 </tr>
 <tr>
-       <td><?php echo_("Nombre d'années amortissement")?></td>
+       <td><?php echo _("Nombre d'années amortissement")?></td>
        <td><?php echo $p_number->input()?></td>
 </tr>
 <tr>

Modified: branches/rel672n/amortis/include/template/material_detail.php
===================================================================
--- branches/rel672n/amortis/include/template/material_detail.php       
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/material_detail.php       
2014-02-13 19:56:17 UTC (rev 712)
@@ -1,43 +1,43 @@
-<h2 class="info"><?php echo_("Modification de matériel")?></h2>
+<h2 class="info"><?php echo _("Modification de matériel")?></h2>
 <form onsubmit="save_modify(this);return false">
 <?php echo $p_card?>
 <?php echo $a_id?>
 <span style="text-align:center;display:block;font-size:2em" id="p_card_label"  
><?php echo  $card->strAttribut(ATTR_DEF_NAME)?></span>
 <table>
 <tr>
-   <td><?php echo_("Fiche")?></td>
+   <td><?php echo _("Fiche")?></td>
        <td><?php echo 
HtmlInput::card_detail($card->strAttribut(ATTR_DEF_QUICKCODE))?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Date Acquisition")?></td>
+   <td><?php echo _("Date Acquisition")?></td>
        <td><?php echo $p_date->input()?></td>
 </tr>
 <tr>
-   <td><?php echo_("Montant à amortir")?></td>
+   <td><?php echo _("Montant à amortir")?></td>
        <td><?php echo $p_amount->input()?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Année comptable d'achat")?></td>
+   <td><?php echo _("Année comptable d'achat")?></td>
        <td> <?php echo $p_year->input();?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste de charge dotations amortissement 
(débit)")?></td>
+       <td><?php echo _("Poste de charge dotations amortissement 
(débit)")?></td>
        <td><?php echo $p_deb->input()?></td>
        <td><?php echo $deb_span->input()?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste amortissement en contrepartie")?></td>
+       <td><?php echo _("Poste amortissement en contrepartie")?></td>
        <td><?php echo $p_cred->input();?></td>
        <td><?php echo $cred_span->input();?></td>
 </tr>
 <tr>
-       <td><?php echo_("Nombre d'années amortissement (non modifiable)")?></td>
+       <td><?php echo _("Nombre d'années amortissement (non 
modifiable)")?></td>
        <td><?php echo $p_number->input()?></td>
 </tr>
 <tr>
-       <td><?php echo_("Visible")?> <span class="notice"><?php echo_("Y pour 
oui ou N pour non")?></span></td>
+       <td><?php echo _("Visible")?> <span class="notice"><?php echo _("Y pour 
oui ou N pour non")?></span></td>
        <td><?php echo $p_visible->input();?></td>
 </tr>
 <tr>
@@ -49,17 +49,17 @@
        <td></td>
 </tr>
 </table>
-       <span class="notice"> <?php echo_("En changeant le montant à amortir, 
l'année ou le nombre d'années, les annuités seront recalculées et l'historique 
effacé")?></span>
-   <fieldset><legend><?php echo_("Annuités")?></legend>
+       <span class="notice"> <?php echo _("En changeant le montant à amortir, 
l'année ou le nombre d'années, les annuités seront recalculées et l'historique 
effacé")?></span>
+   <fieldset><legend><?php echo _("Annuités")?></legend>
 <table class="result">
-   <th><?php echo_("Année")?></th>
-   <th><?php echo_("Montant")?></th>
-   <th><?php echo_("Amortissement acté")?></th>
-   <th><?php echo_("Pièce")?> </th>
-   <th><?php echo_("n° interne")?></th>
+   <th><?php echo _("Année")?></th>
+   <th><?php echo _("Montant")?></th>
+   <th><?php echo _("Amortissement acté")?></th>
+   <th><?php echo _("Pièce")?> </th>
+   <th><?php echo _("n° interne")?></th>
 
 
-   <th><?php echo_("Pourcent")?></th>
+   <th><?php echo _("Pourcent")?></th>
 
 <?php 
 bcscale(2);
@@ -118,9 +118,9 @@
 endfor;
 ?>
 </table>
-<span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Total")?> = <?php echo nbm($annuite)?></span>
-         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Amorti")?> = <?php echo nbm($done)?></span>
-         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Reste")?> = <?php echo nbm($p_amount->value-$done)?></span>
+<span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Total")?> = <?php echo nbm($annuite)?></span>
+         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Amorti")?> = <?php echo nbm($done)?></span>
+         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Reste")?> = <?php echo nbm($p_amount->value-$done)?></span>
 
 <?php 
 if ( $annuite !=  $p_amount->value)

Modified: branches/rel672n/amortis/include/template/material_display.php
===================================================================
--- branches/rel672n/amortis/include/template/material_display.php      
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/material_display.php      
2014-02-13 19:56:17 UTC (rev 712)
@@ -1,51 +1,51 @@
-<h2 class="info"><?php echo_("Détail de matériel")?></h2>
+<h2 class="info"><?php echo _("Détail de matériel")?></h2>
 <span style="text-align:center;display:block;font-size:2em" id="p_card_label"  
><?php echo  $card->strAttribut(ATTR_DEF_NAME)?></span>
 <table>
 <tr>
-   <td><?php echo_("Fiche")?></td>
+   <td><?php echo _("Fiche")?></td>
        <td><?php echo $card->strAttribut(ATTR_DEF_QUICKCODE)?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Date d'acquisition")?></td>
+   <td><?php echo _("Date d'acquisition")?></td>
        <td><?php echo $p_date?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Montant à amortir")?></td>
+   <td><?php echo _("Montant à amortir")?></td>
        <td><?php echo $p_amount?></td>
 </tr>
 
 <tr>
-   <td><?php echo_("Année comptable d'achat")?></td>
+   <td><?php echo _("Année comptable d'achat")?></td>
        <td> <?php echo $p_year;?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste de charge dotations amortissement 
(débit)")?></td>
+       <td><?php echo _("Poste de charge dotations amortissement 
(débit)")?></td>
        <td><?php echo $p_deb?></td>
        <td><?php echo $deb_span?></td>
 </tr>
 <tr>
-       <td><?php echo_("Poste amortissement en contrepartie")?></td>
+       <td><?php echo _("Poste amortissement en contrepartie")?></td>
        <td><?php echo $p_cred?></td>
        <td><?php echo $cred_span?></td>
 </tr>
 <tr>
-       <td><?php echo_("Nombre d'années amortissement (non modifiable)")?></td>
+       <td><?php echo _("Nombre d'années amortissement (non 
modifiable)")?></td>
        <td><?php echo $p_number?></td>
 </tr>
 </table>
 
-<fieldset><legend><?php echo_("Annuités")?></legend>
+<fieldset><legend><?php echo _("Annuités")?></legend>
 <table class="result">
-   <th><?php echo_("Année")?></th>
-   <th><?php echo_("Montant")?></th>
-   <th style="text-align:right" ><?php echo_("Amortissement acté")?></th>
-   <th style="text-align:center"><?php echo_("Pièce")?> </th>
-   <th><?php echo_("n° interne")?></th>
+   <th><?php echo _("Année")?></th>
+   <th><?php echo _("Montant")?></th>
+   <th style="text-align:right" ><?php echo _("Amortissement acté")?></th>
+   <th style="text-align:center"><?php echo _("Pièce")?> </th>
+   <th><?php echo _("n° interne")?></th>
 
 
-   <th><?php echo_("Pourcent")?></th>
+   <th><?php echo _("Pourcent")?></th>
 
 <?php 
 bcscale(2);
@@ -92,9 +92,9 @@
 endfor;
 ?>
 </table>
-<span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Total")?> = <?php echo nbm($annuite)?></span>
-         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Amorti")?> = <?php echo nbm($done)?></span>
-         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo_("Reste")?> = <?php echo nbm($p_amount-$done)?></span>
+<span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Total")?> = <?php echo nbm($annuite)?></span>
+         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Amorti")?> = <?php echo nbm($done)?></span>
+         <span 
style="font-size:120%;font-weight:bold;font-family:arial;font-style:italic;margin-right:10%"><?php
 echo _("Reste")?> = <?php echo nbm($p_amount-$done)?></span>
 
 <?php 
 if ( $annuite !=  $p_amount)

Modified: branches/rel672n/amortis/include/template/material_listing.php
===================================================================
--- branches/rel672n/amortis/include/template/material_listing.php      
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/material_listing.php      
2014-02-13 19:56:17 UTC (rev 712)
@@ -3,16 +3,16 @@
 
 <table id="list_amortissement" class="sortable" 
style="width:80%;margin-left:10%">
 <tr>
-   <th><?php echo_("Quickcode")?></th>
+   <th><?php echo _("Quickcode")?></th>
 <th class=" sorttable_sorted">
        Nom
 <span id="sorttable_sortfwdind">&nbsp;&nbsp;&#x25BE;</span>
 </th>
-<th><?php echo_("Date acquisition")?></th>
-<th><?php echo_("Année achat")?></th>
-<th style="text-align:right"><?php echo_("Montant Initial")?></th>
-<th style="text-align:right"><?php echo_("Montant Amorti")?></th>
-<th style="text-align:right"><?php echo_("Montant à amortir")?></th>
+<th><?php echo _("Date acquisition")?></th>
+<th><?php echo _("Année achat")?></th>
+<th style="text-align:right"><?php echo _("Montant Initial")?></th>
+<th style="text-align:right"><?php echo _("Montant Amorti")?></th>
+<th style="text-align:right"><?php echo _("Montant à amortir")?></th>
 
 </tr>
 

Modified: branches/rel672n/amortis/include/template/util_generate.php
===================================================================
--- branches/rel672n/amortis/include/template/util_generate.php 2014-02-13 
19:37:36 UTC (rev 711)
+++ branches/rel672n/amortis/include/template/util_generate.php 2014-02-13 
19:56:17 UTC (rev 712)
@@ -32,7 +32,7 @@
 
 <table>
 <tr>
-   <td><?php echo_("Année")?></td>
+   <td><?php echo _("Année")?></td>
 <td><?php echo $year->input();?></td>
 </tr>
 <tr>
@@ -54,18 +54,18 @@
 </tr>
 <?php endif; ?>
 <tr>
-<td><?php echo_("Pièce")?></td>
+<td><?php echo _("Pièce")?></td>
 <td><?php echo $pj->input()?></td>
 </tr>
 </table>
 
- <?php echo_("Cochez ce qu'il faut amortir")?>
+ <?php echo _("Cochez ce qu'il faut amortir")?>
 <table class="result">
 <tr>
-   <th><?php echo_("Selection")?></th>
-   <th><?php echo_("Quick Code")?></th>
-   <th><?php echo_("Nom")?></th>
-   <th><?php echo_("Description")?></th>
+   <th><?php echo _("Selection")?></th>
+   <th><?php echo _("Quick Code")?></th>
+   <th><?php echo _("Nom")?></th>
+   <th><?php echo _("Description")?></th>
 </tr>
 <?php 
 /*

Modified: branches/rel672n/import_account/include/class_impacc_operation.php
===================================================================
--- branches/rel672n/import_account/include/class_impacc_operation.php  
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/class_impacc_operation.php  
2014-02-13 19:56:17 UTC (rev 712)
@@ -35,7 +35,7 @@
        {
                if (trim($_FILES['csv_operation']['name']) == '')
                {
-                       alert('Pas de fichier donné');
+                 alert(_('Pas de fichier donné'));
                        return -1;
                }
                $this->filename = tempnam($_ENV['TMP'], 'upload_');
@@ -58,7 +58,7 @@
                        if (count($row) != 11)
                        {
                                $str_row = implode($row, ";");
-                               echo "Attention " . h($str_row) . " ne contient 
pas 11 colonnes";
+                               printf (_("Attention %s ne contient pas 11 
colonnes"),h($str_row));
                                continue;
                        }
                        $r = new impacc_Operation_tmp_Sql();
@@ -77,7 +77,7 @@
                        $r->insert();
                        $this->row_count++;
                }
-               echo "Nombre de lignes enregistrées : " . $this->row_count;
+               echo _("Nombre de lignes enregistrées")." : " . 
$this->row_count;
                $import = new impacc_import_sql($this->impid);
                $import->setp("nbrow", $this->row_count);
                $import->update();
@@ -110,19 +110,19 @@
                                if ($db > 0)
                                {
                                        $operation->setp("code", "N");
-                                       $operation->setp("message", " Opération 
déjà transférée : doublon ");
+                                       $operation->setp("message", 
_("Opération déjà transférée : doublon "));
                                        $operation->update();
                                        continue;
                                }
                                if (trim($dol) == "" || isNumber($dol) == 0)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" le numéro de ligne pour 
dolibarr est invalide";
+                                       $msg.=" "._("le numéro de ligne pour 
dolibarr est invalide");
                                }
                                if (isDate($operation->getp("date")) == null)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" La date est invalide, format 
n'est pas JJ.MM.AAAA";
+                                       $msg.=" "._("La date est invalide, 
format n'est pas JJ.MM.AAAA");
                                }
                                $fiche = new Fiche($cn);
                                
$fiche->get_by_qcode(trim($operation->getp("qcode")));
@@ -130,7 +130,7 @@
                                if ($fiche->id == 0)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" Cette fiche n'existe pas";
+                                       $msg.=" "._("Cette fiche n'existe pas");
                                }
                                else
                                {
@@ -143,10 +143,10 @@
                                if (trim($poste) == '' || 
$cn->get_value("select count(*) from tmp_pcmn where pcm_val=$1", array($poste)) 
== 0)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" Cette fiche n'a pas de poste 
comptable valide";
+                                       $msg.=" "._("Cette fiche n'a pas de 
poste comptable valide");
                                }
                                $operation->setp("poste", $poste);
-                               $a = array("rate" => " Taux de TVA", 
"amount_total" => "Montant total", "number_unit" => 'Nombre d\'unité', 
"amount_vat" => "Montant TVA");
+                               $a = array("rate" => _("Taux de TVA"), 
"amount_total" => _("Montant total"), "number_unit" => _("Nombre d'unité"), 
"amount_vat" => _("Montant TVA"));
 
                                foreach ($a as $key => $value)
                                {
@@ -156,7 +156,7 @@
                                        if (trim($v) != "" && isNumber($v) == 0)
                                        {
                                                $operation->setp("code", 'N');
-                                               $msg.=" $value n'est pas un 
nombre";
+                                               $msg.=_(" $value n'est pas un 
nombre");
                                                continue;
                                        }
 
@@ -169,12 +169,12 @@
                                        if (count($tva_id) > 1)
                                        {
                                                $operation->setp("code", 'N');
-                                               $msg.=" Plusieurs code TVA 
correspondent à ce taux";
+                                               $msg.=" "._("Plusieurs code TVA 
correspondent à ce taux");
                                        }
                                        elseif (empty($tva_id))
                                        {
                                                $operation->setp("code", 'N');
-                                               $msg.=" Aucun code TVA ne 
correspond à ce taux";
+                                               $msg.=" "._("Aucun code TVA ne 
correspond à ce taux");
                                        }
                                        else
                                        {
@@ -188,12 +188,12 @@
                                if ($nb_customer == 0)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" Aucun client ou fournisseur";
+                                       $msg.=_("Aucun client ou fournisseur");
                                }
                                if ($nb_good == 0)
                                {
                                        $operation->setp("code", 'N');
-                                       $msg.=" Aucune marchandise ou service";
+                                       $msg.=" "._("Aucune marchandise ou 
service");
                                }
 
                                // check if in a opened period
@@ -243,20 +243,20 @@
                        o_message
                        from impacc.operation_tmp where i_id=" . $this->impid . 
" order by o_id";
                echo Html_Table::sql2table($cn, array(
-                       array('name' => 'n° ligne',
-                               'style' => 'style="text-align:right"'),
-                       array('name' => 'Date',
-                               'style' => 'text-align:right'),
-                       array('name' => 'QuickCode'),
-                       array('name' => 'Libellé'),
-                       array('name' => 'n° pj'),
-                       array('name' => 'Montant / unité', 'style' => 
'style="text-align:right"'),
-                       array('name' => 'Montant Total TVA', 'style' => 
'style="text-align:right"'),
-                       array('name' => 'Nbre unités', 'style' => 
'style="text-align:right"'),
-                       array('name' => 'taux TVA', 'style' => 
'style="text-align:right"'),
-                       array('name' => 'Montant total TVAC', 'style' => 
'style="text-align:right"'),
-                       array('name' => 'Transfert', 'style' => 
'style="text-align:right"', 'raw' => 1),
-                       array('name' => 'Message')
+                                                     array('name' => _('n° 
ligne'),
+                                                           'style' => 
'style="text-align:right"'),
+                                                     array('name' => _('Date'),
+                                                           'style' => 
'text-align:right'),
+                                                     array('name' => 
_('QuickCode')),
+                                                     array('name' 
=>_('Libellé')),
+                                                     array('name' => _('n° 
Pièce')),
+                                                     array('name' => 
_('Montant / unité'), 'style' => 'style="text-align:right"'),
+                                                     array('name' => 
_('Montant Total TVA'), 'style' => 'style="text-align:right"'),
+                                                     array('name' => _('Nbre 
unités'), 'style' => 'style="text-align:right"'),
+                                                     array('name' => _('taux 
TVA'), 'style' => 'style="text-align:right"'),
+                                                     array('name' => 
_('Montant total TVAC'), 'style' => 'style="text-align:right"'),
+                                                     array('name' => 
_('Transfert'), 'style' => 'style="text-align:right"', 'raw' => 1),
+                                                     array('name' => 
_('Message'))
                                )
                                , $sql, 'style="width:100%" class="result"'
                );
@@ -281,7 +281,7 @@
                                $oth_side = 'c';
                                break;
                        default:
-                               die('Erreur ce type journal n\' est pas encore 
supporté');
+                         die(_("Erreur ce type journal n' est pas encore 
supporté"));
                }
                /**
                 * Loop in table operation_tmp, get all the record to transfer
@@ -480,13 +480,13 @@
                from impacc.operation_tmp as otmp join 
impacc.operation_transfer as ot on (ot.o_id = otmp.o_id) join jrnx on 
(jrnx.j_id = ot.j_id)
                and i_id=$1  ) order by jr_date ";
                $arow=$cn->get_array($sql,array($this->impid));
-               echo h2("Opérations sauvées",'info');
+               echo h2(_("Opérations sauvées"),'info');
                echo '<table class="result">';
                echo '<tr>';
-               echo th("Date");
-               echo th("Libellé");
-               echo th("Pièce");
-               echo th("N° opération");
+               echo th(_("Date"));
+               echo th(_("Libellé"));
+               echo th(_("Pièce"));
+               echo th(_("N° opération"));
                echo '</tr>';
                for ($i=0;$i<count($arow);$i++)
                {

Modified: branches/rel672n/import_account/include/class_import_card.php
===================================================================
--- branches/rel672n/import_account/include/class_import_card.php       
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/class_import_card.php       
2014-02-13 19:56:17 UTC (rev 712)
@@ -142,22 +142,22 @@
 
                if ($valid_col == 0)
                {
-                       alert("Aucune colonne n'est définie");
+                 alert(_("Aucune colonne n'est définie"));
                        return -1;
                }
                if ($valid_name == 0)
                {
-                       alert("Les fiches doivent avoir au minimum un nom");
+                 alert(_("Les fiches doivent avoir au minimum un nom"));
                        return -1;
                }
                if ($duplicate != 0)
                {
-                       alert('Vous avez défini plusieurs fois la même 
colonne');
+                 alert(_('Vous avez défini plusieurs fois la même colonne'));
                        return -1;
                }
                if ($valid_qcode == 0)
                {
-                       alert("Vous devez donner la colonne quick_code");
+                 alert(_("Vous devez donner la colonne quick_code"));
                        return 1;
                }
                /*
@@ -239,7 +239,7 @@
                $name = $cn->get_value('select fd_label from fiche_def where 
fd_id=$1', array($rfichedef));
                $cn->get_value('select comptaproc.fiche_attribut_synchro($1)', 
array($rfichedef));
                echo '<span class="notice">';
-               echo $row_count . ' fiches sont insérées dans la catégorie ' . 
$name;
+               echo $row_count . " "._('fiches sont insérées dans la 
catégorie').' ' . $name;
                echo '</span>';
                return 0;
        }

Modified: branches/rel672n/import_account/include/class_sql_impacc.php
===================================================================
--- branches/rel672n/import_account/include/class_sql_impacc.php        
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/class_sql_impacc.php        
2014-02-13 19:56:17 UTC (rev 712)
@@ -33,7 +33,7 @@
                        return $this->$idx;
                }
                else
-                       throw new Exception(__FILE__ . ":" . __LINE__ . 
$p_string . 'Erreur attribut inexistant '.$p_string);
+                 throw new Exception(__FILE__ . ":" . __LINE__ . $p_string . 
_('Erreur attribut inexistant')." ".$p_string);
        }
 
        public function setp($p_string, $p_value)
@@ -44,7 +44,7 @@
                        $this->$idx = $p_value;
                }
                else
-                       throw new Exception(__FILE__ . ":" . __LINE__ . 
$p_string . 'Erreur attribut inexistant '.$p_string);
+                 throw new Exception(__FILE__ . ":" . __LINE__ . $p_string . 
_('Erreur attribut inexistant')." ".$p_string);
        }
 
        public function insert()

Modified: branches/rel672n/import_account/include/imd_operation.inc.php
===================================================================
--- branches/rel672n/import_account/include/imd_operation.inc.php       
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/imd_operation.inc.php       
2014-02-13 19:56:17 UTC (rev 712)
@@ -52,7 +52,7 @@
        $io->result();
        echo '<div style="margin-left:20%">';
        echo '<form method="POST">';
-       echo "<p class=\"notice\">Les opérations qui ne sont pas marquées comme 
correctes ne seront pas transfèrées </p>";
+       echo "<p class=\"notice\">"._("Les opérations qui ne sont pas marquées 
comme correctes ne seront pas transfèrées")." </p>";
        echo HtmlInput::hidden("impid",$io->impid);
        $l=new ISelect("p_jrn");
        $l->value=$cn->make_array("select jrn_def_id, jrn_def_name ||'  
['||jrn_def_type||']' from jrn_def
@@ -61,7 +61,7 @@
                order by jrn_def_name");
        echo "Vers le journal ".$l->input();
        echo '<p>';
-       echo HtmlInput::submit("transfer","Transfert des opérations");
+       echo HtmlInput::submit("transfer",_("Transfert des opérations"));
        echo '</p>';
        echo "</FORM>";
        echo '</div>';

Modified: branches/rel672n/import_account/include/imd_parameter.inc.php
===================================================================
--- branches/rel672n/import_account/include/imd_parameter.inc.php       
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/imd_parameter.inc.php       
2014-02-13 19:56:17 UTC (rev 712)
@@ -35,10 +35,10 @@
                if (isNumber($pt_rate) == 0)
                        throw new Exception("le taux n'est pas un nombre");
                if ($pt_rate < 0 || $pt_rate > 100)
-                       throw new Exception("le taux est invalide");
+                 throw new Exception(_("le taux est invalide"));
                $tva = new Acc_Tva($cn, $tva_id);
                if ($tva->load() == -1)
-                       throw new Exception('Cette tva est invalide');
+                 throw new Exception(_('Cette tva est invalide'));
                $sql = "insert into impacc.parameter_tva(tva_id,pt_rate) values 
($1,$2)";
                $cn->exec_sql($sql, array($_POST['tva_id'], $_POST['pt_rate']));
        }
@@ -60,12 +60,12 @@
                                $pt_rate = ${'rate' . $aparm[$i]['pt_id']};
                                $tva_id = ${'tva_' . $aparm[$i]['pt_id']};
                                if (isNumber($pt_rate) == 0)
-                                       throw new Exception("le taux n'est pas 
un nombre");
+                                 throw new Exception(_("le taux n'est pas un 
nombre"));
                                if ($pt_rate < 0 || $pt_rate > 100)
-                                       throw new Exception("le taux est 
invalide");
+                                 throw new Exception(_("le taux est 
invalide"));
                                $tva = new Acc_Tva($cn, $tva_id);
                                if ($tva->load() == -1)
-                                       throw new Exception('Cette tva est 
invalide');
+                                 throw new Exception(_('Cette tva est 
invalide'));
                                $sql = "update impacc.parameter_tva set tva_id 
= $1, pt_rate = $2 where pt_id=$3";
                                $cn->exec_sql($sql, array($tva_id, 
$pt_rate,$aparm[$i]['pt_id']));
                        }
@@ -83,7 +83,7 @@
 require 'template/parameter_tva_add.php';
 echo '<form method="POST">';
 require 'template/parameter.php';
-echo HtmlInput::submit("mod", "Modification");
+echo HtmlInput::submit("mod",_( "Modification"));
 
 echo '</form>';
 ?>

Modified: branches/rel672n/import_account/include/template/input_file.php
===================================================================
--- branches/rel672n/import_account/include/template/input_file.php     
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/input_file.php     
2014-02-13 19:56:17 UTC (rev 712)
@@ -4,30 +4,30 @@
 ?>
 </h2>
 
-<p>Pour importer des données, c'est-à-dire transformer des fichiers CSV 
(Valeur séparé par des virgules) en des fiches. Vous devez choisir, un fichier 
et donner une catégorie de fiche existante. Ensuite, il suffit d'indiquer 
quelles colonnes correspondent à quelle attribut. 
+<p><?php echo _("Pour importer des données, c'est-à-dire transformer des 
fichiers CSV (Valeur séparé par des virgules) en des fiches. Vous devez 
choisir, un fichier et donner une catégorie de fiche existante. Ensuite, il 
suffit d'indiquer quelles colonnes correspondent à quelle attribut.");?>
 </p>
 <p>
-   Par défaut, correspond à un export CSV depuis Calc (OpenOffice.org ou 
libreoffice);
+ <?php echo _("Par défaut, correspond à un export CSV depuis Calc 
(OpenOffice.org ou libreoffice)")?>;
 </p>
 <form method="POST" enctype="multipart/form-data">
 <?php echo $hidden?>
 <table>
 <tr>
-<td>Délimiteur </td><TD> <?php echo $delimiter->input()?></td>
+   <td><?php echo _("Délimiteur");?> </td><TD> <?php echo 
$delimiter->input()?></td>
 </tr>
 <tr>
-<td>Fichier à charger</td><TD> <?php echo $file->input()?></td>
+   <td><?php echo _("Fichier à charger")?></td><TD> <?php echo 
$file->input()?></td>
 </tr>
 <tr>
-<td>Catégorie de fiche</td><TD> <?php echo $fd->input();?></td>
+   <td><?php echo _("Catégorie de fiche")?></td><TD> <?php echo 
$fd->input();?></td>
 </tr>
 <tr>
-<td>Encodage unicode</td><TD> <?php echo $encodage->input()?></td>
+   <td><?php echo _("Encodage unicode")?></td><TD> <?php echo 
$encodage->input()?></td>
 </tr>
 <tr>
-<td>  Texte entouré du signe </td><TD><input type="text" name="rsurround" 
value='"' size="1"></td>
+   <td><?php echo _("Texte entouré du signe")?> </td><TD><input type="text" 
name="rsurround" value='"' size="1"></td>
 </tr>
 </table>
-<?php echo HtmlInput::submit('test_import','Valider');?>
+   <?php echo HtmlInput::submit('test_import',_('Valider'));?>
 
 </form>

Modified: branches/rel672n/import_account/include/template/parameter.php
===================================================================
--- branches/rel672n/import_account/include/template/parameter.php      
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/parameter.php      
2014-02-13 19:56:17 UTC (rev 712)
@@ -1,15 +1,15 @@
 
 <?php 
        $bt=new IButton("but_tva_add");
-       $bt->label="Ajout d'une correspondance";
+$bt->label=_("Ajout d'une correspondance");
        $bt->javascript=" $('dtvaadd').show()";
        echo $bt->input();
 ?>
 
 <table class="result" style="width:60%;margin-left:20%">
        <tr>
-               <th>Fiche TVA</th>
-               <th>Taux correspondant <?php echo 
HtmlInput::infobulle(50)?></th>
+         <th><?php echo _("Fiche TVA")?></th>
+         <th><?php echo _("Taux correspondant")?> <?php echo 
HtmlInput::infobulle(50)?></th>
        </tr>
        <?php
        for ($i = 0; $i < count($atva); $i++):

Modified: branches/rel672n/import_account/include/template/parameter_tva_add.php
===================================================================
--- branches/rel672n/import_account/include/template/parameter_tva_add.php      
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/parameter_tva_add.php      
2014-02-13 19:56:17 UTC (rev 712)
@@ -27,7 +27,7 @@
  */
 ?>
 <div id="dtvaadd" class="inner_box" style="display:none">
-       <h2 class="info">Ajout d'un taux de tva</h2>
+   <h2 class="info"><?php echo _("Ajout d'un taux de tva")?></h2>
        <form method="POST">
 
                <table>
@@ -49,10 +49,10 @@
                                </td>
                        </tr>
                </table>
-               <?php echo  HtmlInput::submit("ftvaadd", "Ajout");?>
+   <?php echo  HtmlInput::submit("ftvaadd", _("Ajout"));?>
                <?php 
                $bt = new IButton("but_tva_close");
-               $bt->label = "Fermer";
+$bt->label = _("Fermer");
                $bt->javascript = " $('dtvaadd').hide()";
                echo $bt->input();
                ?>

Modified: branches/rel672n/import_account/include/template/test_file.php
===================================================================
--- branches/rel672n/import_account/include/template/test_file.php      
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/test_file.php      
2014-02-13 19:56:17 UTC (rev 712)
@@ -5,27 +5,28 @@
 ?>
 </h2>
 
-<p>Pour importer des données, c'est-à-dire transformer des fichiers CSV 
(Valeur séparé par des virgules) en des fiches. Vous devez choisir, un fichier 
et donner une catégorie de fiche existante. Ensuite, il suffit d'indiquer 
quelles colonnes correspondent à quelle attribut. 
+<p>
+ <?php echo _("Pour importer des données, c'est-à-dire transformer des 
fichiers CSV (Valeur séparé par des virgules) en des fiches. Vous devez 
choisir, un fichier et donner une catégorie de fiche existante. Ensuite, il 
suffit d'indiquer quelles colonnes correspondent à quelle attribut."); ?>
 </p>
 
 <form method="POST" >
 <?php echo $hidden?>
 <table>
 <tr>
-<td>Délimiteur </td>
+   <td><?php echo _("Délimiteur")?> </td>
 <td> <?php echo $_POST['rdelimiter']?></td>
 </tr>
 <tr>
-<td>Fichier à charger</td><td> <?php echo $_FILES['csv_file']['name']?></td>
+   <td><?php echo _("Fichier à charger")?></td><td> <?php echo 
$_FILES['csv_file']['name']?></td>
 </tr>
 <tr>
-<td>Catégorie de fiche</td><td> <?php echo $file_cat;?></td>
+   <td><?php echo _("Catégorie de fiche")?></td><td> <?php echo 
$file_cat;?></td>
 </tr>
 <tr>
-<td>Encodage </td><td> <?php echo $encoding?></td>
+   <td><?php echo _("Encodage")?> </td><td> <?php echo $encoding?></td>
 </tr>
 <tr>
-<td>Texte entouré par</td><td> <?php echo $_POST['rsurround'];?></td>
+   <td><?php echo _("Texte entouré par")?></td><td> <?php echo 
$_POST['rsurround'];?></td>
 </tr>
 </table>
 <?php 
@@ -35,7 +36,7 @@
 }
 echo HtmlInput::hidden('filename',$filename);
 
- echo HtmlInput::submit('record_import','Valider');
+echo HtmlInput::submit('record_import',_('Valider'));
 ?>
 <input type="hidden" name="rsurround" value='<?php echo $_POST['rsurround']?>'>
 
@@ -77,7 +78,7 @@
 
 $sql=sprintf('select ad_id,ad_text from jnt_fic_attr join attr_def 
using(ad_id) where fd_id=%d order by ad_text ',$_POST['rfichedef']);
 $header->value=$cn->make_array($sql);
-$header->value[]=array('value'=>-1,'label'=>'-- Non Utilisé --');
+$header->value[]=array('value'=>-1,'label'=>'-- '._('Non Utilisé').' --');
 $header->selected=-1;
 echo th('Numéro de ligne');
 for ($i=0;$i<$max;$i++)

Modified: branches/rel672n/import_account/include/template/test_operation.php
===================================================================
--- branches/rel672n/import_account/include/template/test_operation.php 
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/test_operation.php 
2014-02-13 19:56:17 UTC (rev 712)
@@ -5,27 +5,28 @@
 ?>
 </h2>
 
-<p>Pour importer des données, c'est-à-dire transformer des fichiers CSV 
(Valeur séparé par des virgules) en des fiches. Vous devez choisir, un fichier 
et donner une catégorie de fiche existante. Ensuite, il suffit d'indiquer 
quelles colonnes correspondent à quelle attribut. 
+<p>
+ <?php echo _("Pour importer des données, c'est-à-dire transformer des 
fichiers CSV (Valeur séparé par des virgules) en des fiches. Vous devez 
choisir, un fichier et donner une catégorie de fiche existante. Ensuite, il 
suffit d'indiquer quelles colonnes correspondent à quelle attribut")?>
 </p>
 
 <form method="POST" >
 <?php echo $hidden?>
 <table>
 <tr>
-<td>Délimiteur </td>
+   <td><?php echo _("Délimiteur")?> </td>
 <td> <?php echo $_POST['rdelimiter']?></td>
 </tr>
 <tr>
-<td>Fichier à charger</td><td> <?php echo $_FILES['csv_file']['name']?></td>
+   <td><?php echo _("Fichier à charger")?></td><td> <?php echo 
$_FILES['csv_file']['name']?></td>
 </tr>
 <tr>
-<td>Catégorie de fiche</td><td> <?php echo $file_cat;?></td>
+   <td><?php echo _("Catégorie de fiche")?></td><td> <?php echo 
$file_cat;?></td>
 </tr>
 <tr>
-<td>Encodage </td><td> <?php echo $encoding?></td>
+   <td><?php echo _("Encodage")?> </td><td> <?php echo $encoding?></td>
 </tr>
 <tr>
-<td>Texte entouré par</td><td> <?php echo $_POST['rsurround'];?></td>
+   <td><?php echo _("Texte entouré par")?></td><td> <?php echo 
$_POST['rsurround'];?></td>
 </tr>
 </table>
 <?php 
@@ -35,7 +36,7 @@
 }
 echo HtmlInput::hidden('filename',$filename);
 
- echo HtmlInput::submit('record_import','Valider');
+echo HtmlInput::submit('record_import',_('Valider'));
 ?>
 <input type="hidden" name="rsurround" value='<?php echo $_POST['rsurround']?>'>
 
@@ -77,7 +78,7 @@
 
 $sql=sprintf('select ad_id,ad_text from jnt_fic_attr join attr_def 
using(ad_id) where fd_id=%d order by ad_text ',$_POST['rfichedef']);
 $header->value=$cn->make_array($sql);
-$header->value[]=array('value'=>-1,'label'=>'-- Non Utilisé --');
+$header->value[]=array('value'=>-1,'label'=>'--'._('Non Utilisé').' --');
 $header->selected=-1;
 echo th('Numéro de ligne');
 for ($i=0;$i<$max;$i++)

Modified: branches/rel672n/import_account/include/template/upload_operation.php
===================================================================
--- branches/rel672n/import_account/include/template/upload_operation.php       
2014-02-13 19:37:36 UTC (rev 711)
+++ branches/rel672n/import_account/include/template/upload_operation.php       
2014-02-13 19:56:17 UTC (rev 712)
@@ -37,9 +37,9 @@
 <table>
 <tr>
 <tr>
-       <td>Fichier à charger</td><TD> <?php $file = new 
IFile('csv_operation');echo $file->input()?></td>
+   <td><?php echo _("Fichier à charger")?></td><TD> <?php $file = new 
IFile('csv_operation');echo $file->input()?></td>
 </tr>
 </table>
-<?php echo HtmlInput::submit('upload','Valider');?>
+ <?php echo HtmlInput::submit('upload',_('Valider'));?>
 
 </form>
\ No newline at end of file



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]