From a16b1d92c404d7af52e2ccd3277cb8b9bd81dc59 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 14 Nov 2010 19:53:21 +0000 Subject: =?UTF-8?q?#860154=20by=20Zolt=C3=A1n=20Balogh,=20zserno,=20G?= =?UTF-8?q?=C3=A1bor=20Hojtsy:=20Fixed=20Locale=20module=20does=20not=20im?= =?UTF-8?q?port=20the=20plural=20forms=20from=20compact=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/locale.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/locale.inc b/includes/locale.inc index 1019ba432..75e534395 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -609,7 +609,7 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = $context = "MSGID_PLURAL"; } elseif (!strncmp("msgid", $line, 5)) { - if ($context == "MSGSTR") { // End current entry, start a new one + if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one _locale_import_one_string($op, $current, $mode, $lang, $file, $group); $current = array(); } @@ -627,7 +627,7 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = $context = "MSGID"; } elseif (!strncmp("msgctxt", $line, 7)) { - if ($context == "MSGSTR") { // End current entry, start a new one + if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one _locale_import_one_string($op, $current, $mode, $lang, $file, $group); $current = array(); } -- cgit v1.2.3