Skip to content

Commit 9e73811

Browse files
committed
Quick fix for locale problems
1 parent b57ae57 commit 9e73811

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

timemanager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def __init__( self, iface ):
4242
try:
4343
control
4444
except NameError:
45-
lang=locale.getdefaultlocale()[0].split("_")[0]
45+
try:
46+
lang=locale.getdefaultlocale()[0].split("_")[0]
47+
except:
48+
lang="en" # could not get locale, OSX may have this bug
49+
4650
self.change_i18n(lang)
4751
control = TimeManagerControl(iface)
4852

0 commit comments

Comments
 (0)