new implementation of items marked obsolete
the current implementation of items marked obsolete did not allow "plain" comments for these items. However, this is perfectly fine according to the original gettext tools. When writing a po file, comments for obsolete items don't contain the '#~ ' mark (tested using msgcat), so this is now also aligned with the behaviour of the original gettext tools. For all these cases I added examples in the po files, that failed with the current implementation and work fine after these changes.
This commit is contained in:
10
test/fixtures/commented.po
vendored
10
test/fixtures/commented.po
vendored
@@ -21,3 +21,13 @@ msgstr "{{dataLoader.data.length}} resultaten"
|
||||
|
||||
#~ msgid "Add order"
|
||||
#~ msgstr "Order toevoegen"
|
||||
|
||||
#~ # commented obsolete item
|
||||
#~ #, fuzzy
|
||||
#~ msgid "Commented item"
|
||||
#~ msgstr "not sure"
|
||||
|
||||
# commented obsolete item
|
||||
#, fuzzy
|
||||
#~ msgid "Second commented item"
|
||||
#~ msgstr "also not sure"
|
||||
|
||||
Reference in New Issue
Block a user