i18n babel can not extract lazy text strings correct #1395
Labels
3.x
Issue or PR for stable 3.x version
docs
Something is missing in docs
good first issue
A good place to start contributing to this project without going too deep.
help wanted
Extra attention is needed
Checklist
Operating system
Any
Python version
3.10
aiogram version
3.3.0
Expected behavior
I make en example according this document: https://docs.aiogram.dev/en/dev-3.x/utils/i18n.html
I create lines lazy text and gettext wrapped strings.
Also I add plural forms.
Extracting strings using Babel should return this strings in
.pot
template file:Current behavior
After extraction we loose some strings.
Babel command
extracts either this:
or
extracts that:
Here we loose plural forms.
Ether this or that but not all together.
The use of these keys
__:1,2
оr_:1,2
_
__
and their various combinations leads to an even more disastrous result.Steps to reproduce
pybabel extract -o locales/messages.pot --input-dirs=.
pybabel extract -o locales/messages.pot --keywords="__" --input-dirs=.
pybabel extract -o locales/messages.pot --keywords="__:1,2" --input-dirs=.
pybabel extract -o locales/messages.pot --keywords="__ __:1,2"--input-dirs=.
Code example
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: