aboutsummaryrefslogtreecommitdiffstats
path: root/langs/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/lib.php')
-rw-r--r--langs/lib.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/langs/lib.php b/langs/lib.php
index d4293c008..716404fd7 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -100,7 +100,8 @@ if ( ! function_exists('glob_recursive'))
function _lang_file_switch($s, $l)
{
- return $l . substr(str_replace('.en.lang', '.' . $l . '.lang', $s), 2);
+ $s = str_replace('en.lang', $l . '.lang', $s);
+ return str_replace('en/', $l . '/', $s);
}
function get_lang_references()