Translators cannot control more than two plural forms in message string of BatchAction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Yves-Gwenael Bourhis |
Bug Description
Reported in comment #2 of bug 1252082.
In some languages the number of plural forms is more than two,
but horizon only supports one type of plural form and translators cannot
control more than two plural forms.
The following description is quoted from bug 1252082.
I am not sure it works.
----
In general plural form problem can be handled with ungettext_lazy.
https:/
I think we need to change all classes inherited BatchAction and DeleteAction. I haven't tested below.
IMO it is better to be fixed separately.
The following is an example of DeleteNetwork: (https:/
class DeleteNetwork(
data_type = ungettext_
and change horizon/
data_type = self.data_type % {'_count': <num_of_items>}
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
assignee: | nobody → Verónica Musso (veronica-a-musso) |
Changed in horizon: | |
importance: | Undecided → Medium |
milestone: | none → juno-2 |
Changed in horizon: | |
milestone: | juno-2 → juno-3 |
Changed in horizon: | |
milestone: | juno-3 → juno-rc1 |
Changed in horizon: | |
milestone: | juno-rc1 → kilo-1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-rc1 → 2014.2 |
According to Django documentation, ungettext_lazy() only works in Django 1.6 or later.
We still supports Django 1.4 and 1.5, so we need to do this carefully.