makemessages and compilemessages force the location of PO files
|Reported by:||julen||Owned by:||nobody|
|Component:||Core (Management commands)||Version:|
|Severity:||Normal||Keywords:||gettext, l10n, i18n, makemessages, compilemessages|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django's makemessages and compilemessages management commands currently force applications to put their PO files under <LOCALE_PATH>/<lang_code>/LC_MESSAGES/<domain>.po.
According to the GNU gettext manual, LC_<category> should be used for Message Catalog files, i.e. MO files.
Thus, the cited management commands should at least provide an option to specify the location of PO files. Ideally PO files should be moved off the LC_MESSAGES directory too, as it becomes redundant. LC_MESSAGES directories would only be generated after invoking compilemessages and would only be used at run-time, as a location where compiled files are read from.
Change History (4)
comment:1 Changed 2 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to needsinfo
- Status changed from new to closed