Fix a bug that caused spell checking to fail when using the builtin spanish dictionary

This commit is contained in:
Kovid Goyal 2014-04-22 08:41:50 +05:30
parent 268d2b996c
commit ced2265ce2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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: