Retire gettext.install which installs _() as builtin namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
As oslo.i18n document [1] suggests, we need to replace _() in the python builtin namespaces with _ defined in _i18n.py in each module. Sharing _() in the builtin namespaces prevents us from looking up per-module translation catalogs because it forces all subprojects to use "neutron" domain.
It is required to support per-project message catalog.
Required actions:
- Introduce _i18.py with a project specific domain as suggested by oslo.i18n.
- Change all related project consumes _() from their own _i18n.py
- Remove gettext.install from neutron/
I will move forward this bug, but anyone can help me.
There are many projects under neutron stadium.
[1] http://
Changed in neutron: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: oslo |
Changed in neutron: | |
assignee: | Akihiro Motoki (amotoki) → Ihar Hrachyshka (ihar-hrachyshka) |
Changed in neutron: | |
assignee: | Ihar Hrachyshka (ihar-hrachyshka) → Akihiro Motoki (amotoki) |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
It seems better to start this work after bug 1519493 is completed.