Role name should not be translated in Project Member Edit Tab

Bug #1226510 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Akihiro Motoki

Bug Description

In "Project Member" tab of "Edit Project" form, we can choose role of each project member in small drop-down menu.
There is a case role names in drop-down menu are displayed with translated string.

In the following screenshot, "Member" role is displayed with the translated string: http://imgur.com/a/HzPlN#0
The first one is localized one and the second one is in English. "Member" is translated.

"Member" should not translated since it is just a value from keystone.

A word "Member" is used in Load Balancer table, so openstack_dashboard/locale/*/LC_MESSAGES/django.po contains a corresponding entry. I confirmed it affects the above drop-down menu by changing the entry in django.po to a string with special character like ###### and compile it to django.mo. (I can see ###### in drop-down menu.)

An easy way to reproduce is:
- change django.po of your language under openstack_dashboard/locale,
- search "Member" (including double quotes),
- edit msgstr to a string you can distinguish easily,
- msgfmt -o django.mo django.po (in the directory where django.po exists), and
- restart the web sever

Tags: i18n
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I identified the cause. The patch is coming soon.

Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
importance: Undecided → Low
milestone: none → havana-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/46932

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/46932
Committed: http://github.com/openstack/horizon/commit/4bf72481a8b408bfb5b4c2681f376f9b3f67593d
Submitter: Jenkins
Branch: master

commit 4bf72481a8b408bfb5b4c2681f376f9b3f67593d
Author: Akihiro MOTOKI <email address hidden>
Date: Tue Sep 17 21:20:52 2013 +0900

    Role name should not be translated in Project Member Edit Tab

    Role names are retrieved from keystone and they should be displayed
    as-is. The same thing applies to UpdateProjectGroupsAction.

    Change-Id: Ieea7ba58cff66c506a7e7f26f26341fe5afd01b1
    Closes-Bug: #1226510

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.