Changeset 113:a3c4d9205538
- Timestamp:
- 04/26/12 17:21:04 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
runmlx-hu.sh
r109 r113 3 3 scriptdir=`dirname $0` 4 4 5 exec /usr/bin/env LANGUAGE=hu_HU LANG=hu_HU.UTF-8 LC_MESSAGES=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF 8 LC_CTYPE=hu_HU.UTF8 "${scriptdir}/runmlx.sh" "$@"5 exec /usr/bin/env LANGUAGE=hu_HU LANG=hu_HU.UTF-8 LC_MESSAGES=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF-8 LC_CTYPE=hu_HU.UTF-8 "${scriptdir}/runmlx.sh" "$@" -
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.