mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
da875a3d15
commit
2f2787d0fa
@ -26,8 +26,8 @@ def get_system_locale():
|
||||
from calibre.constants import iswindows
|
||||
lang = None
|
||||
if iswindows:
|
||||
from calibre.constants import get_windows_user_locale_name
|
||||
try:
|
||||
from calibre.constants import get_windows_user_locale_name
|
||||
lang = get_windows_user_locale_name()
|
||||
lang = lang.strip()
|
||||
if not lang: lang = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user