mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also lowercase language
This commit is contained in:
parent
74bd089c64
commit
f1ee07e199
@ -46,7 +46,9 @@ def iterate_over_builtin_recipe_files():
|
||||
def normalize_language(x: str) -> str:
|
||||
lang, sep, country = x.replace('-', '_').partition('_')
|
||||
if sep == '_':
|
||||
x = f'{lang}{sep}{country.upper()}'
|
||||
x = f'{lang.lower()}{sep}{country.upper()}'
|
||||
else:
|
||||
x = lang.lower()
|
||||
return x
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user