Overview Description
babel should be able to extract translatable strings when the {n,p}gettext call is inside an f-string.
For example:
f'<label>{gettext("Title")}:</label>'
The nested gettext("Title") should be extracted.
Same issue from GNU xgettext: https://savannah.gnu.org/bugs/?61596
Steps to Reproduce
- File
test.py with f'<label>{gettext("Title")}:</label>'
- run
pybabel extract test.py
Actual Results
Title is not extracted
Expected Results
Title should be extracted
Additional Information
babel version 2.12.1
Overview Description
babel should be able to extract translatable strings when the {n,p}gettext call is inside an f-string.
For example:
f'<label>{gettext("Title")}:</label>'The nested
gettext("Title")should be extracted.Same issue from GNU xgettext: https://savannah.gnu.org/bugs/?61596
Steps to Reproduce
test.pywithf'<label>{gettext("Title")}:</label>'pybabel extract test.pyActual Results
Titleis not extractedExpected Results
Titleshould be extractedAdditional Information
babel version
2.12.1