From e6a78739bd45971afd7e78a0af8c5067c6d52c22 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 May 2016 21:12:09 +0200 Subject: [PATCH] Fix translation from a key that is a numeric --- htdocs/core/class/translate.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 34858bc3234..c0757de2d6b 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -857,9 +857,10 @@ class Translate //print 'param: '.$key.'-'.$keydatabase.'-'.$this->trans($key); exit; // Check if a translation is available (this can call getTradFromKey) - if ($this->transnoentitiesnoconv($key) != $key) + $tmp=$this->transnoentitiesnoconv($key); + if ($tmp != $key && $tmp != 'ErrorBadValueForParamNotAString') { - return $this->transnoentitiesnoconv($key); // Found in language array + return $tmp; // Found in language array } // Check in cache