Fix translation from a key that is a numeric

This commit is contained in:
Laurent Destailleur 2016-05-19 21:12:09 +02:00
parent 453937bdfd
commit e6a78739bd

View File

@ -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