diff --git a/include/pgettext.php b/include/pgettext.php index 47242f7ba9..49f1007370 100644 --- a/include/pgettext.php +++ b/include/pgettext.php @@ -58,6 +58,9 @@ function push_lang($language) { $a->langsave = $lang; + if($language === $lang) + return; + if(isset($a->strings) && count($a->strings)) { $a->stringsave = $a->strings; } @@ -68,6 +71,10 @@ function push_lang($language) { function pop_lang() { global $lang, $a; + + if($lang === $a->langsave) + return; + if(isset($a->stringsave)) $a->strings = $a->stringsave; else