diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-26 15:24:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-26 15:24:50 +0000 |
commit | 761ec74ffd9301a7e6ad1c1f2dfad82d773127f8 (patch) | |
tree | 23e7cace216b00502bfaa1bab8e43b6986c96abc /includes | |
parent | c705279a7a3b91890eea03d02dc7b27369c352e3 (diff) | |
download | brdo-761ec74ffd9301a7e6ad1c1f2dfad82d773127f8.tar.gz brdo-761ec74ffd9301a7e6ad1c1f2dfad82d773127f8.tar.bz2 |
- Patch #611786 by Gábor Hojtsy, tobiasb, Pasqualle: .po file should not be considered broken if last msgstr is empty.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/locale.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index a1cbed4d5..76861bae7 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -650,8 +650,8 @@ function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = } } - // End of PO file, flush last entry - if (!empty($current) && !empty($current['msgstr'])) { + // End of PO file, flush last entry. + if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { _locale_import_one_string($op, $current, $mode, $lang, $file, $group); } elseif ($context != "COMMENT") { |