mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a bug that caused spell checking to fail when using the builtin spanish dictionary
This commit is contained in:
parent
268d2b996c
commit
ced2265ce2
@ -1,3 +1,4 @@
|
||||
es-ES
|
||||
es-AR
|
||||
es-BO
|
||||
es-CL
|
||||
@ -6,7 +7,6 @@ es-CR
|
||||
es-CU
|
||||
es-DO
|
||||
es-EC
|
||||
es-ES
|
||||
es-GT
|
||||
es-HN
|
||||
es-MX
|
||||
|
@ -62,6 +62,7 @@ def import_from_libreoffice_source_tree(source_path):
|
||||
df = os.path.join(dest, locale + os.path.splitext(src)[1])
|
||||
shutil.copyfile(src, df)
|
||||
with open(os.path.join(dest, 'locales'), 'wb') as f:
|
||||
locales.sort(key=lambda x: (0, x) if x == locale else (1, x))
|
||||
f.write(('\n'.join(locales)).encode('utf-8'))
|
||||
|
||||
if want_locales:
|
||||
|
Loading…
x
Reference in New Issue
Block a user