From 32b9d8227db9b166bf891fa72256d8eab6c002fc Mon Sep 17 00:00:00 2001 From: Et0h Date: Tue, 2 Dec 2014 21:53:55 +0000 Subject: [PATCH] Get locale in a way that works on Linux --- syncplay/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/messages.py b/syncplay/messages.py index 5091c03..355b1c8 100755 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -1002,7 +1002,7 @@ def getMissingStrings(): def getInitialLanguage(): import locale try: - initialLanguage = locale.getdefaultlocale("language")[0].split("_")[0] + initialLanguage = locale.getdefaultlocale()[0].split("_")[0] if not messages.has_key(initialLanguage): initialLanguage = constants.FALLBACK_INITIAL_LANGUAGE except: