Hard to translate "Displaying %s of %s items" (cannot control the order of substitutions)
Bug #1495815 reported by
Akihiro Motoki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Akihiro Motoki |
Bug Description
horizon/
#: static/
#, python-format
msgid "Displaying %s of %s items"
msgstr ""
In some languages, there is a need to swap the order of the two %s.
%s should be replaced by %(keyword)s (keyword substitution).
The current horizon/
176 var total = ensureNonNegati
177 var format = gettext('Displaying %s of %s items');
178 return interpolate(format, [count, total]);
L.177 should be:
var format = gettext('Displaying %(count)s of %(total)s items');
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | liberty-rc1 → 8.0.0 |
To post a comment you must log in.
https:/ /review. openstack. org/#/c/ 223432/