File childsplay-locale.patch of Package childsplay

Index: pangofont.py
===================================================================
--- pangofont.py.orig
+++ pangofont.py
@@ -386,11 +386,11 @@ if __name__ == '__main__':
     
     # setup a test gettext environment
     import __builtin__ , os,gettext
-    LOCALEDIR = '/usr/local/share/locale'
+    LOCALEDIR = '/usr/share/locale'
     if os.environ.has_key('LANGUAGE'):
         lang = os.environ['LANGUAGE']
         log.info("Setting locale to '%s'" % (lang))
-        lang_trans = gettext.translation('childsplay',\
+        lang_trans = gettext.translation('childsplay_sp',\
                                          localedir=LOCALEDIR,\
                                          languages=lang)
         __builtin__.__dict__['_'] = lang_trans.ugettext
Index: utils.py
===================================================================
--- utils.py.orig
+++ utils.py
@@ -76,6 +76,8 @@ def set_locale(lang=None):
         languages = [lang]
         if os.environ.has_key('LANGUAGE'):
             languages += os.environ['LANGUAGE'].split(':')
+        if os.environ.has_key('LANG'):
+            languages += os.environ['LANG'].split(':')
         module_logger.info("Setting childsplay locale to '%s' modir: %s" % (lang, LOCALEDIR))
         lang_trans = gettext.translation('childsplay_sp', \
             localedir=LOCALEDIR, \
openSUSE Build Service is sponsored by