Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
childsplay
childsplay-locale.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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, \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor