BatchAction pluralization never counts the items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Looking more closely at BatchAction it seems that it never really counts the number of items are the passed in. Instead it will choose a translations based on either the number 1 (if no items are passed in), or the number 6 (because that's the number of letters in 'plural').
For some languages, like Russian, and I think Polish, there should be different translations used for describing 2 or 6 items.
We should make sure that when there is a known number of items we use that in the BatchAction lookups. We probably shouldn't have _any_ references to singular and plural in the code once this is done.
I'm looking at
horizon/
def _get_action_
and the calls to it like
self.verbose_
'verbose_
lambda: self._get_
and especially the call in update
self.verbose_
Changed in horizon: | |
assignee: | nobody → Brian Fischer (brian-fischer) |
Changed in horizon: | |
assignee: | Brian Fischer (brian-fischer) → nobody |
+1 good catch.