diff options
author | Brooklyn Chen <brooklyn.chen@canonical.com> | 2013-05-14 14:05:42 +0800 |
---|---|---|
committer | Brooklyn Chen <brooklyn.chen@canonical.com> | 2013-05-18 15:13:54 +0800 |
commit | 08e6ed7392aa9d510833dee5b468140de10c22a6 (patch) | |
tree | 2a362ef616fc8c65fc8b2387bb259c0c384594d5 /horizon/conf | |
parent | d17fd51359ef915e59e053401dec0e8a952dfbe8 (diff) | |
download | horizon-08e6ed7392aa9d510833dee5b468140de10c22a6.tar.gz |
Use ugettext_lazy instead of ugettext.
We should use ugettext_lazy to let users in different languages
get correct translation.Though in views or similar places
we can use ugettext with no problems, we should make code
style consistent.
This also fix the issues that the django proxy objects appear on the
launching instance page instead of translated strings. Now the
translated quota strings are handled correctly.
Fixes: bug #1178722
Change-Id: I76f0d31e6546d70e5ece7e86a06f7eefd04861d2
Diffstat (limited to 'horizon/conf')
-rw-r--r-- | horizon/conf/default.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/conf/default.py b/horizon/conf/default.py index 376a20c6c..445b2571a 100644 --- a/horizon/conf/default.py +++ b/horizon/conf/default.py @@ -1,5 +1,5 @@ from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ # Default configuration dictionary. Do not mutate. HORIZON_CONFIG = { |