yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02622
[Bug 1138183] Re: Django template default values are not translatable
** Changed in: horizon
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1138183
Title:
Django template default values are not translatable
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
Default value defined in django template are not marked as
translatable.
Example:
{{ router.name|default:"None" }}
Akihiro Motoki:
I grepped *.html in the code base of Horizon by "default:" and I found all of default value are not translatable. This should be fixed with other default value in a separate patch I think.
One alternative to fix this is to use this syntax:
Should probably look like:
{{ router.name|default:_("None") }}
Thoughts?
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1138183/+subscriptions