aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--langs.inc.php4
1 files changed, 2 insertions, 2 deletions
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('"','<br>', ' ');
- $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;