Fix translation from a key that is a numeric
This commit is contained in:
parent
453937bdfd
commit
e6a78739bd
@ -857,9 +857,10 @@ class Translate
|
|||||||
//print 'param: '.$key.'-'.$keydatabase.'-'.$this->trans($key); exit;
|
//print 'param: '.$key.'-'.$keydatabase.'-'.$this->trans($key); exit;
|
||||||
|
|
||||||
// Check if a translation is available (this can call getTradFromKey)
|
// 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
|
// Check in cache
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user