Make WordPress Core

Opened 17 years ago

Closed 14 years ago

#11294 closed defect (bug) (duplicate)

Spellchecker for custom language does not work

Reported by: pavelevap Owned by: azaozz
Priority: normal Milestone:
Component: TinyMCE Version: 2.9
Severity: normal Keywords: spellchecker dev-feedback
Cc: Focuses:

Description

I tried to add Czech language as default TinyMCE spellchecker, but does not work for me (code inserted into functions.php):

add_filter( 'mce_spellchecker_languages', 'my_languages' );
function my_languages($str) {

   // replace all
   $str = '+Czech=cz,English=en,German=de';

   return $str;
}

In TinyMCE are shown defined languages, but when I select Czech (Čeština), it does not work and looks for english dictionary.

So it is not possible to spellcheck in Czech for me (tested on 2.8.6 and 2.9 trunk) and looks only for English words.

You can test it for example with following sentence:

Right: "Vytvořit nový příspěvek"

Wrong to spellcheck: "Vytvořt nový příspěvk" (two characters missing).

But no chance to spellcheck it in Czech, when you click on underlined words, only English words are suggested.

Change History (3)

#1 @dd32
17 years ago

  • Keywords dev-feedback added
  • Milestone 2.9Future Release

Simply adding the language to the spell checker is not enough. The spell check backend is GoogleSpell in a default installation, So you're limited to the languages which that supports (Which I cant find a list of, nor any official documentation).

You'll find the spellchecker config in \wp-includes\js\tinymce\plugins\spellchecker\config.php

Given this is related to external parties, I'm tempted to say that this is not something which WordPress can deal with directly (Its a 3rd party library - TinyMCE, dealing with a 3rd party spell check service - Google, and the code has been untouched for 2 years).. However, Setting to Future Release as its highly unlikely anything will be done about this in the short term for 2.9.

#2 @pavelevap
17 years ago

OK, I supposed that when there is an official WordPress filter mce_spellchecker_languages then this small change of language will be supported.

It would be also very helpfull when in wp-config.php there is set cs_CZ then Czech language should be set as default also for spellchecker.

#3 @nacin
14 years ago

  • Milestone Future Release
  • Resolutionduplicate
  • Status newclosed

Closing as a duplicate of #23341 — only 12 languages (11 we list, plus Russian) are supported.

Note: See TracTickets for help on using tickets.