aboutsummaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-02-09 14:46:57 +0000
committerRomain d'Alverny <rda@mageia.org>2013-02-09 14:46:57 +0000
commiteb088cb2ab610c0f7324022ffd46f57b53bf394b (patch)
tree1981091e546adb68c45a0fa520ac488da7673e33 /lib.php
parent96c2421c11f38dc0f024b71b383d384d8d1369bb (diff)
downloadnav-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.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 52df169..bd4af2a 100644
--- a/lib.php
+++ b/lib.php
@@ -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;
}
}