From a8c49f11ca4d9cdb640394b3d484b2a22abb2c1a Mon Sep 17 00:00:00 2001 From: aspangaro Date: Thu, 28 May 2015 06:16:58 +0200 Subject: [PATCH] ER add key language --- .../class/expensereport.class.php | 21 +++---------------- htdocs/langs/en_US/main.lang | 2 ++ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 3a0a15d6d81..6d8dd793a3d 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -109,24 +109,9 @@ class ExpenseReport extends CommonObject $this->total_tva = 0; // List of language codes for status - $this->statuts[0]='Draft'; - $this->statuts[2]='Validated'; - $this->statuts[4]='Canceled'; - $this->statuts[5]='Approved'; - $this->statuts[6]='Paid'; - $this->statuts[99]='Refused'; - $this->statuts_short[0]='Draft'; - $this->statuts_short[2]='Validated'; - $this->statuts_short[4]='Canceled'; - $this->statuts_short[5]='Approved'; - $this->statuts_short[6]='Paid'; - $this->statuts_short[99]='Refused'; - $this->statuts_logo[0]='statut0'; - $this->statuts_logo[2]='statut1'; - $this->statuts_logo[4]='statut5'; - $this->statuts_logo[5]='statut3'; - $this->statuts_logo[6]='statut6'; - $this->statuts_logo[99]='statut8'; + $this->statuts_short = array(0 => 'Draft', 2 => 'Validated', 4 => 'Canceled', 5 => 'Approved', 6 => 'Paid', 99 => 'Refused'); + $this->statuts = array(0 => 'Draft', 2 => 'Validated', 4 => 'Canceled', 5 => 'Approved', 6 => 'Paid', 99 => 'Refused'); + $this->statuts_logo = array(0 => 'statut0', 2 => 'statut1', 4 => 'statut5', 5 => 'statut3', 6 => 'statut6', 99 => 'statut8'); return 1; } diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 0d7377b89e4..9010b641acd 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -413,6 +413,8 @@ Qty=Qty ChangedBy=Changed by ApprovedBy=Approved by ApprovedBy2=Approved by (second approval) +Approved=Approved +Refused=Refused ReCalculate=Recalculate ResultOk=Success ResultKo=Failure