cleanup translation in a file - replacing with underscore
Bug #1351478 reported by
Cindy Lu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Veena |
Bug Description
As suggested by: https:/
This file https:/
from django.utils import translation
...
return translation.
should be replaced with:
from django.
...
return _("%(size)d Byte", "%(size)d Bytes", 0) % {'size': 0}
replace instances with _.
tags: | added: low-hanging-fruit |
Changed in horizon: | |
assignee: | nobody → veena (mveenasl) |
Changed in horizon: | |
importance: | Undecided → Low |
tags: | added: i18n |
Changed in horizon: | |
milestone: | none → juno-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
To post a comment you must log in.
Be careful, as there is a mix of ugettext and ungettext in the file and they work differently:
https:/ /docs.djangopro ject.com/ en/dev/ topics/ i18n/translatio n/#standard- translation /docs.djangopro ject.com/ en/dev/ topics/ i18n/translatio n/#pluralizatio n
https:/