Wordpress 2.8.6 Spell Check Languages

When trying to add norwegian as the default language for one of my wordpress sites, I had problems finding documentation for where the language list actually is located. Tracking it down myself become a long task as well. Here is how you can edit the languages for your wordpress system.

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.

Written by: Dag Jonny Nedrelid
©2007-2012 http://thronic.com


Feel free to leave a comment.
Name:
URL:
0