[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/13: Translation
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/13: Translation |
Date: |
Sat, 19 Jan 2019 16:52:59 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit c5d11e7459e34b3e03dc178b41f51e3b56640519
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 28 10:49:51 2018 +0100
Translation
---
include/class/acc_ledger.class.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index ff58aa4..f2f1fca 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -1102,7 +1102,7 @@ class Acc_Ledger extends jrn_def_sql
throw new Exception("La fiche quick_code = ".
$f->quick_code." n'est pas dans ce journal", 4);
if (strlen(trim(${'qc_'.$i}))!=0&&isNumber(${'amount'.$i})==0)
- throw new Exception('Montant invalide', 3);
+ throw new Exception(_('Montant invalide'), 3);
$strPoste=$f->strAttribut(ATTR_DEF_ACCOUNT);
if ($strPoste=='')
@@ -1119,9 +1119,11 @@ class Acc_Ledger extends jrn_def_sql
if (isset(${'poste'.$i})&&strlen(trim(${'poste'.$i}))!=0)
{
$p=new Acc_Account_Ledger($this->db, ${'poste'.$i});
- if ($p->belong_ledger($p_jrn)<0)
- throw new Exception(_("Le poste")." ".$p->id." "._("n'est
pas dans ce journal"),
+ if ($p->belong_ledger($p_jrn)<0) {
+ throw new Exception(sprintf (
+ _("Le poste %s n'est pas dans ce journal",$p->id)),
5);
+ }
if
(strlen(trim(${'poste'.$i}))!=0&&isNumber(${'amount'.$i})==0)
throw new Exception(_('Poste invalide
['.${'poste'.$i}.']'),
3);
@@ -1131,7 +1133,7 @@ class Acc_Ledger extends jrn_def_sql
$card_id=$p->find_card();
if (!empty($card_id))
{
- $str_msg=" Le poste ".$p->id." appartient à
".count($card_id)." fiche(s) dont :";
+ $str_msg=sprintf(_(" Le poste %s appartient à fiche(s)
dont :"),$str_msg,count($card_id));
$max=(count($card_id)>MAX_COMPTE_CARD)?MAX_COMPTE_CARD:count($card_id);
for ($x=0; $x<$max; $x++)
{
- [Noalyss-commit] [noalyss] branch master updated (1971f32 -> ffb0255), Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 01/13: use of httpInput, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 13/13: Protect parameters, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 02/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 04/13: Translation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 06/13: Translation, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 08/13: remove commented code, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 09/13: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 10/13: PHP 7.2 mistyped command, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 12/13: Typo, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 11/13: Database upgrade, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 07/13: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2019/01/19
- [Noalyss-commit] [noalyss] 03/13: Translation, Dany De Bontridder, 2019/01/19