python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
432 stars 159 forks source link

Modifying translation files' structure #187

Closed Porrumentzio closed 1 year ago

Porrumentzio commented 3 years ago

Seems that the unique way to structure translations with (flask-)babel is this:

/translations
|___messages.pot
|
|___/es
|...|___/LC_MESSAGES
|.......|____messages.po
|___/eu
|...|___/LC_MESSAGES
|.......|____messages.po

I want to use this kind of structure instead:

/translations
|___messages.pot
|___es.po
|___eu.po

Is this possible?

TkTech commented 1 year ago

No. LC_MESSAGES is actually the name of the translation category. It can be LC_MESSAGES, LC_NUMERIC, LC_CURRENCY, yada yada. The directory structure has meaning to tools that work with gettext catalogs.