"Detach Volume" is unlocalized Project > Instances action menu, window title and button
Bug #1626312 reported by
Yuko Katabami
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
openstack_
openstack_
openstack_
The string "Detach Volume" is unlocalized in 3 places:
1. Action menu
2. Window title
3. Action button in the window
The same text appears in Manager Attachments on the Volumes tab is localized
(openstack_
Changed in horizon: | |
assignee: | nobody → Sai Kiran (saikiran) |
tags: | added: i18n |
Changed in horizon: | |
milestone: | none → ocata-1 |
To post a comment you must log in.
This seems to hit gettext bug or gettext intended behavior. dashboard/ dashboards/ project/ volumes/ volumes/ tables. py and _ (ugettext_lazy) for "Detach Volume" in other places.
We use ungettext_lazy for "Detach Volume" in openstack_
In the extracted message catalog, "Detach Volume" is a single record.
#: openstack_ dashboard/ dashboards/ project/ instances/ tables. py:937 dashboard/ dashboards/ project/ instances/ views.py: 489 dashboard/ dashboards/ project/ instances/ views.py: 491 dashboard/ dashboards/ project/ volumes/ volumes/ tables. py:521
#: openstack_
#: openstack_
#: openstack_
msgid "Detach Volume"
msgid_plural "Detach Volumes"
msgstr[0] ""
msgstr[1] ""
and a corresponding entry in Japanese translation is as follows:
#: openstack_ dashboard/ dashboards/ project/ instances/ tables. py:937 dashboard/ dashboards/ project/ instances/ views.py: 489 dashboard/ dashboards/ project/ instances/ views.py: 491 dashboard/ dashboards/ project/ volumes/ volumes/ tables. py:521
#: openstack_
#: openstack_
#: openstack_
msgid "Detach Volume"
msgid_plural "Detach Volumes"
msgstr[0] "ボリュームの切断"
However, unfortunately, when translation conversion, _ (ugettext_lazy) does not look up an entry with plural definition. As a result, the above translated entry is not found and an English version is displayed.