Skip to content

Commit 112bedc

Browse files
committed
Fixed plurals w/ CreationFlag_IgnoreTranslations
Plurals entries (msgstr[%d]) were incorrectly not cleared of translations in POCatalogParser even when the CreationFlag_IgnoreTranslations flags was set.
1 parent 51f159b commit 112bedc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/catalog_po.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ bool POCatalogParser::Parse()
436436
mtranslations.Add(str);
437437
}
438438

439+
if (m_ignoreTranslations)
440+
mtranslations.clear();
441+
439442
if (!OnEntry(mstr, msgid_plural, true,
440443
has_context, msgctxt,
441444
mtranslations,

0 commit comments

Comments
 (0)