This commit is contained in:
Kovid Goyal 2012-08-14 23:11:32 +05:30
parent da875a3d15
commit 2f2787d0fa

View File

@ -26,8 +26,8 @@ def get_system_locale():
from calibre.constants import iswindows from calibre.constants import iswindows
lang = None lang = None
if iswindows: if iswindows:
from calibre.constants import get_windows_user_locale_name
try: try:
from calibre.constants import get_windows_user_locale_name
lang = get_windows_user_locale_name() lang = get_windows_user_locale_name()
lang = lang.strip() lang = lang.strip()
if not lang: lang = None if not lang: lang = None