Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow #| comments #47

Open
floratmin opened this issue Apr 21, 2021 · 1 comment
Open

Allow #| comments #47

floratmin opened this issue Apr 21, 2021 · 1 comment

Comments

@floratmin
Copy link

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.

@lukasgeiter
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants