From 0332537f327fad8a76e80c85c996d99c09e30e20 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sat, 9 Feb 2013 12:17:13 +0000 Subject: navigation added to translation report --- langs/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'langs/lib.php') 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() -- cgit v1.2.1