152
157
## Initialize gettext (maybe make this optional later for module use ?)
154
159
if os.name == "nt" and not os.environ.get('LANG'):
155
160
# Set locale config for gettext (other platforms have this by default)
156
161
# Using LANG because it is lowest prio - do not override other params
159
163
os.environ['LANG'] = lang + '.' + enc
160
164
logging.info('Locale set to: %s', os.environ['LANG'])