Changeset 113:a3c4d9205538 for src
- Timestamp:
- 04/26/12 17:21:04 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r107 r113 1 1 # Configuration and related stuff 2 # -*- encoding: utf-8 -*- 2 3 3 4 #------------------------------------------------------------------------------- … … 157 158 def getLanguage(self): 158 159 """Get the language to be used.""" 160 import locale 159 161 if self._language: 162 locale.setlocale(locale.LC_ALL, (self._language, 163 locale.getpreferredencoding())) 160 164 return self._language 161 165 else: 162 import locale166 locale.setlocale(locale.LC_ALL, "") 163 167 return locale.getdefaultlocale()[0] 164 168
Note:
See TracChangeset
for help on using the changeset viewer.