diff options
author | Romain d'Alverny <rda@mageia.org> | 2013-02-09 14:46:57 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2013-02-09 14:46:57 +0000 |
commit | eb088cb2ab610c0f7324022ffd46f57b53bf394b (patch) | |
tree | 1981091e546adb68c45a0fa520ac488da7673e33 /lib.php | |
parent | 96c2421c11f38dc0f024b71b383d384d8d1369bb (diff) | |
download | nav-eb088cb2ab610c0f7324022ffd46f57b53bf394b.tar nav-eb088cb2ab610c0f7324022ffd46f57b53bf394b.tar.gz nav-eb088cb2ab610c0f7324022ffd46f57b53bf394b.tar.bz2 nav-eb088cb2ab610c0f7324022ffd46f57b53bf394b.tar.xz nav-eb088cb2ab610c0f7324022ffd46f57b53bf394b.zip |
i18n string lookup fixed
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -179,8 +179,10 @@ P; global $_t; - $_t[$s] = trim(str_replace(array('{ok}', '{OK}', '{Ok}', '{oK}'), '', $_t[$s])); - return array_key_exists($s, $_t) ? $_t[$s] : $s; + $s = array_key_exists($s, $_t) ? $_t[$s] : $s; + $s = trim(str_replace(array('{ok}', '{OK}', '{Ok}', '{oK}'), '', $s)); + + return $s; } } |