i18n issues on "Delete" buttons
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Gabriel Hurley |
Bug Description
Delete buttons (ex. "Delete Flavor", "Delete Flavors" in Flavors view) can't be localized correctly because "action" word and "data_type" word are concatenated in BatchAction. _conjugate().
Concatenation has two problems. One is that the words order is fixed and others is that l10n workers want to change the sentence overall to keep layout sometimes. (some words is too long after translation)
I guess that CreateFlavor class which uses "verbose_name = _("Create Flavor")" may be good way for i18n.
So I made a patch as trial. But I am not familiar with horizon. There may be another issues potentially.
--- a/horizon/
+++ b/horizon/
@@ -12,6 +12,11 @@ LOG = logging.
class DeleteFlavor(
data_
data_
+ verbose_name = _("Delete Flavor")
+ verbose_name_plural = _("Delete Flavors")
+
+ def update(self, request, datum):
+ pass
Changed in horizon: | |
status: | Confirmed → In Progress |
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | folsom-3 → 2012.2 |
Definitely worth finding a fix for. We'll have to see what the best options are here.