[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 17/173: Translation
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 17/173: Translation |
Date: |
Mon, 22 Mar 2021 12:58:25 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2873d62abac33aa4eb7e3db81b644f429a873562
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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 7aaecf3..99ae705 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -1118,7 +1118,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=='')
@@ -1135,9 +1135,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);
@@ -1147,7 +1149,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] 80/173: Merge branch 'master' into entreprise, (continued)
- [Noalyss-commit] [noalyss] 80/173: Merge branch 'master' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 82/173: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 88/173: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 26/173: Currency : history for accounting , correct amount in currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 28/173: remove commented code, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 34/173: by default jrn is an empty array, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 40/173: Protect parameters, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 43/173: PHP 7.2 mistyped command, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 47/173: Currency : set default accounting for change difference when using currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 16/173: Translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 17/173: Translation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 23/173: Currency : precision 6, display default currency , protect used currency against delete, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 27/173: Currency : detail operation Purchase , the amount in currency were wrong in the summary, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 37/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 38/173: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 39/173: Currency : because of Misc Operation, the tiers must also be saved into operation_currency. Fix also PRINTJRN for currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 44/173: Currency Show currency info for MISC, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 46/173: Typo, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 48/173: translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 49/173: Mantis #0001688: Affichage centime dans l'écran de confirmation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 50/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22