Skip to content
Permalink
Browse files
Fix a bug that caused spell checking to fail when using the builtin s…
…panish dictionary
  • Loading branch information
kovidgoyal committed Apr 22, 2014
1 parent 268d2b9 commit ced2265ce25b188821eeae5d8eb6581d78c46f01
Showing with 2 additions and 1 deletion.
  1. +1 −1 resources/dictionaries/es-ES/locales
  2. +1 −0 src/calibre/spell/import_from.py
@@ -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:

0 comments on commit ced2265

Please sign in to comment.