AtomLinter / linter-spell

Multilingual grammar-specific spell checking for Atom and linter using Ispell compatible interface such as GNU Aspell or Hunspell.
https://atom.io/packages/linter-spell
MIT License
14 stars 1 forks source link

updateDictionaries() in language-manager.js fail in hunspell case with non english interface #25

Closed fndercole closed 8 years ago

fndercole commented 8 years ago

On line 177 in linter-spell/lib/language-manager.js you match «AVAILABLE DICTIONARIES» string.

 if (line.match(/AVAILABLE DICTIONARIES/)) {

But, in my installation, hunspell interface was translated in spanish, so this line must be replaced by

if (line.match(/DICCIONARIOS DISPONIBLES/)) {

I change this line after each linter-spell update, to achieve the dictionaries list query.

I tried to identify an universal way to fix this, but I can't found it.

I hope that you can..

Thanks, Best!

Favio

yitzchak commented 8 years ago

Thanks for reporting. I'll put in a translation table probably.

yitzchak commented 8 years ago

Try upgrading to v0.11.1

fndercole commented 8 years ago

Now works!, thanks.

yitzchak commented 8 years ago

Awesome.