From 761ec74ffd9301a7e6ad1c1f2dfad82d773127f8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 26 Oct 2010 15:24:50 +0000 Subject: =?UTF-8?q?-=20Patch=20#611786=20by=20G=C3=A1bor=20Hojtsy,=20tobia?= =?UTF-8?q?sb,=20Pasqualle:=20.po=20file=20should=20not=20be=20considered?= =?UTF-8?q?=20broken=20if=20last=20msgstr=20is=20empty.?= 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 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") { -- cgit v1.2.3