From ca582cf48744e49388504a223e42b0a493b82e10 Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 26 Jul 2016 22:58:00 +0200 Subject: changed structure of resulting l10n array --- langs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index bb412f2b8..aae94b38c 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -496,10 +496,10 @@ function _r($string_for_translation, $sufix = '') { global $dictionary; $escapeded_string = str_replace(array('"'), array('\\"'), $string_for_translation); - if(!empty($dictionary[$escapeded_string]["msgstr"][0])) { + if(!empty($dictionary[$escapeded_string][0][0])) { $find = array('\\"', '\n', ' ', '{ok}', '{OK}', '{Ok}', '{oK}'); $replace = array('"','
', ' '); - $prepared_string = trim(str_replace($find, $replace, $dictionary[$escapeded_string]["msgstr"][0])); + $prepared_string = trim(str_replace($find, $replace, $dictionary[$escapeded_string][0][0])); } if(empty($prepared_string)) { $prepared_string = $string_for_translation; -- cgit v1.2.1