Skip to content

Commit

Permalink
Fixed plurals w/ CreationFlag_IgnoreTranslations
Browse files Browse the repository at this point in the history
Plurals entries (msgstr[%d]) were incorrectly not cleared of
translations in POCatalogParser even when the
CreationFlag_IgnoreTranslations flags was set.
  • Loading branch information
vslavik committed Nov 13, 2024
1 parent 51f159b commit 112bedc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/catalog_po.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ bool POCatalogParser::Parse()
mtranslations.Add(str);
}

if (m_ignoreTranslations)
mtranslations.clear();

if (!OnEntry(mstr, msgid_plural, true,
has_context, msgctxt,
mtranslations,
Expand Down

0 comments on commit 112bedc

Please sign in to comment.