#8963 closed enhancement (invalid)
More languages in spellchecker
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.7 |
| Component: | TinyMCE | Keywords: | spellchecker, language, tinymce |
| Focuses: | Cc: |
Description
According to "wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js", only a few languages are supported:
// Find selected language
t.languages = {};
each(ed.getParam('spellchecker_languages',
'+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv',
'hash'), function(v, k) {
if (k.indexOf('+') === 0) {
k = k.substring(1);
t.selectedLang = v;
}
t.languages[k] = v;
});
The list of languages above corresponds to my list in the rich-text-editor spellchecker button.
My web-server has additional languages installed for aspell (does WordPress use aspell?).
Aspell seems to support a few additional languages.
Change History (3)
#2
@
17 years ago
- Resolution set to invalid
- Status changed from new to closed
There's a setting in TinyMCE and a filter in WordPress "mce_spellchecker_languages" to set which languages are displayed in the spellchecker button. The line you see in the plugin is the default. Of course the selected languages would also have to be supported by the back-end (GoogleSpell, PSpell, Aspell etc.).
Note: See
TracTickets for help on using
tickets.
By default, WordPress uses the Google Spell API.
You can modify the .php files in the spellchecker directory to enable different spellers, http://trac.wordpress.org/browser/trunk/wp-includes/js/tinymce/plugins/spellchecker/config.php
Looking at it, It supports GoogleSpell, PSpell(PHP Extension, OR command line) & EnchantSpell. Aspell is the same as PSpell, So you should be able to enable the extra speller via the config file. That however, Doesnt change the fact the languages are limited in the JS..