mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
e0308df2b1
commit
d87a8756f3
@ -57,7 +57,12 @@ def get_lang():
|
||||
lang = os.environ.get('CALIBRE_OVERRIDE_LANG', lang)
|
||||
if lang:
|
||||
return lang
|
||||
lang = get_system_locale()
|
||||
try:
|
||||
lang = get_system_locale()
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
lang = None
|
||||
if lang:
|
||||
match = re.match('[a-z]{2,3}(_[A-Z]{2}){0,1}', lang)
|
||||
if match:
|
||||
|
Loading…
x
Reference in New Issue
Block a user