Created
February 12, 2014 11:23
-
-
Save mbernasocchi/8953782 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/safe/common/utilities.py b/safe/common/utilities.py | |
index 2bf265e..149165b 100644 | |
--- a/safe/common/utilities.py | |
+++ b/safe/common/utilities.py | |
@@ -78,13 +78,18 @@ def ugettext(s): | |
""" | |
path = os.path.abspath(os.path.join(os.path.dirname(__file__), | |
'..', 'i18n')) | |
+ print '---------------------' | |
+ print 'STR: %s' % s | |
if 'LANG' not in os.environ: | |
return s | |
lang = os.environ['LANG'] | |
+ print 'LANG: %s' % lang | |
filename_prefix = 'inasafe' | |
t = gettext.translation(filename_prefix, | |
path, languages=[lang], fallback=True) | |
- return t.ugettext(s) | |
+ res = t.ugettext(s) | |
+ print 'RES: %s' % res | |
+ return res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
log: