[wp-trac] [WordPress Trac] #23341: Spell checker in the editor shows languages not supported by google spellchecker like hebrew

WordPress Trac noreply at wordpress.org
Thu Jan 31 13:56:06 UTC 2013


#23341: Spell checker in the editor shows languages not supported by google
spellchecker like hebrew
-----------------------------+--------------------------
 Reporter:  mark-k           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Editor
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 The spell checker in the editor uses via tinymce code the google translate
 service. Problem is that WordPress code assumes that the service supports
 all languages

 {{{
 /*
 translators: These languages show up in the spellchecker drop-down menu,
 in the order specified, and with the first
 language listed being the default language. They must be comma-separated
 and take the format of name=code, where name
 is the language name (which you may internationalize), and code is a valid
 ISO 639 language code. Please test the
 spellchecker with your values.
 */

 $mce_spellchecker_languages = __(
 'English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv'
 );

 /*
 The following filter allows localization scripts to change the languages
 displayed in the spellchecker's drop-down menu.
 By default it uses Google's spellchecker API, but can be configured to use
 PSpell/ASpell if installed on the server.
 The + sign marks the default language. More:
 http://www.tinymce.com/wiki.php/Plugin:spellchecker.
 */
 $mce_spellchecker_languages = apply_filters( 'mce_spellchecker_languages',
 '+' . $mce_spellchecker_languages );
 }}}

 But google insist that they support only 12 languages
 http://support.google.com/toolbar/bin/answer.py?hl=en&answer=32703,
 therefor not any localization can localize it (ok it can, but it is
 pointless). The end result for hebrew is that any gibberish text thrown at
 the spell checker returns as good text.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23341>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list