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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user