aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Jaggars <jhjaggars@gmail.com>2012-02-01 16:51:24 -0600
committerJesse Jaggars <jhjaggars@gmail.com>2012-02-01 16:51:24 -0600
commit764c859c79fce31cb366c22e5e6a9f60f59fc149 (patch)
tree177d10e79549996ba053281d9a62aaeef86a5b9d
parenta6f536856e8e9d01533bfa32958dc22dd20d87c8 (diff)
downloadsos-764c859c79fce31cb366c22e5e6a9f60f59fc149.tar.gz
set_i18n now changes the _sos function properly
-rw-r--r--sos/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/__init__.py b/sos/__init__.py
index 1829e7ee..f703a834 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -53,6 +53,11 @@ def set_i18n(path=None, basename="sos.po.sos"):
ResourceBundle.getString. This is really only useful when using jython.
Path is expected to be the path to a jarfile that contains the translation
files (.properties)"""
+
+ # Since we are trying to modify the module-level _sos variable
+ # we have to declare it global
+ global _sos
+
try:
from java.util import ResourceBundle, Locale