Closed Porrumentzio closed 1 year ago
This seems to be solved with the --add-comment='tag'
option appended to the pybabel extract command. Anyway, comments starting with that tag are displayed to translators with the tag:
And letting the tag empty adds programmer's comments that must not be shown to translators. Is this right? Wouldn't the tag be used for identify which comments to extract, but hidden on POT files?
Anyway, is there not an option to just get the comment the line before of the translatable string?
Extraction is the domain of Babel, not flask-babel, which is just the glue.
I want to add translator comments on .py files, using flask-babel module, and seems that the traditional Gettext extracted comment method\ does not work, as there are no such comments on .pot.
* This structure:
The documentation on Babel says:
So is this the case for Flask-Babel? Is there any workaround or method to extract these comments? Am I doing something wrong?