summaryrefslogtreecommitdiff
path: root/horizon/conf
diff options
context:
space:
mode:
authorBrooklyn Chen <brooklyn.chen@canonical.com>2013-05-14 14:05:42 +0800
committerBrooklyn Chen <brooklyn.chen@canonical.com>2013-05-18 15:13:54 +0800
commit08e6ed7392aa9d510833dee5b468140de10c22a6 (patch)
tree2a362ef616fc8c65fc8b2387bb259c0c384594d5 /horizon/conf
parentd17fd51359ef915e59e053401dec0e8a952dfbe8 (diff)
downloadhorizon-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.py2
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 = {