language translation of red buttons

Asked by Joe T on 2013-02-13

Hello,

I'm trying to get a fully translated Horizon installation running, but I cannot figure out how to translate the text in red buttons. The red buttons provide Delete actions and are set up differently in the Horizon code.

For example:

Folsom: horizon/dashboards/nova/access_and_security/security_groups/tables.py, line 29
Grizzly/master: horizon/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py, line 30

The class that the above references is the Delete action for Security Groups, which I imagine is the red button "Delete Security Groups" when accessing http://localhost/project/access_and_security.

Does anyone know how these can be translated?

Thanks,
Joe

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
Joe T
Solved:
2013-02-15
Last query:
2013-02-15
Last reply:
2013-02-15
Julie Pichon (jpichon) said : #1

This is a bug. It appears due to the code that concatenates and conjugates "Delete" + "data type": https://github.com/openstack/horizon/blob/master/horizon/tables/actions.py#L452 -- it probably should be using the string_concat django translation utils instead of returning a translatable string of translatable strings (?). Unfortunately there are other issues here, since it wouldn't be "verb + noun" in every language.

Joe T (joe-topjian-v) said : #2

Thanks, Julie! I will open a bug report.