gettext-extractor icon indicating copy to clipboard operation
gettext-extractor copied to clipboard

Allow #| comments

Open floratmin opened this issue 3 years ago • 1 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.

floratmin avatar Apr 21 '21 11:04 floratmin

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.

lukasgeiter avatar Apr 21 '21 16:04 lukasgeiter