mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -04:00
Also lowercase language
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user