Commit 5ed3db7c authored by Gábor Hojtsy's avatar Gábor Hojtsy

#192406 by myself: imported locale files were not put into the right textgroup...

#192406 by myself: imported locale files were not put into the right textgroup selected on the interface
parent 18d532e2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment