aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-07-26 22:58:00 +0200
committerfilip <filip.komar@gmail.com>2016-07-26 22:58:00 +0200
commitca582cf48744e49388504a223e42b0a493b82e10 (patch)
treeacaa86d8f2091ef6c7095592b5a0d847ae7b3b57 /langs.inc.php
parent65de3a3abb7a3153caaac1b9df216d184d866b49 (diff)
downloadwww-ca582cf48744e49388504a223e42b0a493b82e10.tar
www-ca582cf48744e49388504a223e42b0a493b82e10.tar.gz
www-ca582cf48744e49388504a223e42b0a493b82e10.tar.bz2
www-ca582cf48744e49388504a223e42b0a493b82e10.tar.xz
www-ca582cf48744e49388504a223e42b0a493b82e10.zip
changed structure of resulting l10n array
Diffstat (limited to 'langs.inc.php')
-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;