Wordpress 2.8.6 Spell Check Languages

Wordpress 2.8.6 Spell Check Languages

The most logical place to look, is in:
wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js

Changes made there however doesn’t reflect in the administration editor. You also need to make changes in:
/wp-admin/includes/post.php

By default, spell checker uses the google gmail engine. This does not support the norwegian language in my case. So I changed over to the pspell engine. This is what I did to make that work for me:

(on the server, a debian box)
// Check first if you already have your language available.
#aspell dicts
-bash: aspell: command not found

// I did not, so I had to install it and make PHP support it as well.
#apt-get install aspell-no php5-pspell

// Reload the apache web server to reflect PHP update.
#/etc/init.d/apache2 reload

// Verify installation
#aspell dicts
nb
nn
no

... Looks good.

Next you change the engine in this file:
/wp-includes/js/tinymce/plugins/spellchecker/config.php

from: $config['general.engine'] = ‘GoogleSpell’;
to: $config['general.engine'] = ‘PSpell’;

That’s it.

Leave a Reply