diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-21 22:04:37 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-21 22:04:37 +0000 |
commit | 5ed3db7c8b8e3cef41fba7a271f991004f2363fc (patch) | |
tree | 455be4ebd2a0822e476484ae467a8bb30edf46b1 /includes/locale.inc | |
parent | 18d532e214d46a5422b1d40f3ac7eecd798e8b33 (diff) | |
download | brdo-5ed3db7c8b8e3cef41fba7a271f991004f2363fc.tar.gz brdo-5ed3db7c8b8e3cef41fba7a271f991004f2363fc.tar.bz2 |
#192406 by myself: imported locale files were not put into the right textgroup selected on the interface
Diffstat (limited to 'includes/locale.inc')
-rw-r--r-- | includes/locale.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index 250fa90cc..8b5da5fff 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -1027,7 +1027,7 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = $current["#"][] = substr($line, 1); } elseif (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one - _locale_import_one_string($op, $current, $mode, $lang, $file); + _locale_import_one_string($op, $current, $mode, $lang, $file, $group); $current = array(); $current["#"][] = substr($line, 1); $context = "COMMENT"; @@ -1053,7 +1053,7 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = } elseif (!strncmp("msgid", $line, 5)) { if ($context == "MSGSTR") { // End current entry, start a new one - _locale_import_one_string($op, $current, $mode, $lang, $file); + _locale_import_one_string($op, $current, $mode, $lang, $file, $group); $current = array(); } elseif ($context == "MSGID") { // Already in this context? Parse error @@ -1127,7 +1127,7 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = // End of PO file, flush last entry if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { - _locale_import_one_string($op, $current, $mode, $lang, $file); + _locale_import_one_string($op, $current, $mode, $lang, $file, $group); } elseif ($context != "COMMENT") { _locale_import_message('The translation file %filename ended unexpectedly at line %line.', $file, $lineno); |