gettext-extractor
gettext-extractor copied to clipboard
Allow #| comments
Gettext allows the following comments:
#| msgctxt previous-message-context
#| msgid previous-untranslated-string-singular
#| msgid_plural previous-untranslated-string-plural
It would be nice if these would be supported for custom extractors.
I hope I understood your request correctly. You would like to include those comments with the message reported from a custom extractor using addMessage
so that they are added to the generated .pot
output file?
If that's the case, that's currently not possible as PO file generation is done using pofile which only supports #
and #.
comments. However, I've been thinking about moving to a different library or writing my own. When I get to that I will keep this requirement in mind.