[wp-polyglots] Add language to Spellchecker button

Pavel Hejn pavelevap at post.cz
Sun Nov 29 12:37:50 UTC 2009


Hi,

does spellchecker work for anybody in other then predefined language in WP 2.9?
I tried it but it does not work for me...

Thank you very much

Pavel

> ------------ Původní zpráva ------------
> Od: Pavel Hejn <pavelevap at post.cz>
> Předmět: Re: [wp-polyglots] Add language to Spellchecker button
> Datum: 18.11.2009 21:47:18
> ----------------------------------------
> Hi,
> 
> great, thank you for your example, I found mce_spellchecker_languages some hours
> ago :-)
> But it is not possible to spellcheck in Czech for me (tested on 2.8.6 and latest
> trunk,code inserted into functions.php).
> As you set in your example, there are only 3 languages now and Czech is default
> in TinyMCE editor, but spellchecker 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, only English words are suggested.
> 
> Thank you very much for your help...
> 
> Pavel
> 
> > ------------ Původní zpráva ------------
> > Od: Andrew Ozz <admin at laptoptips.ca>
> > Předmět: Re: [wp-polyglots] Add language to Spellchecker button
> > Datum: 18.11.2009 20:55:26
> > ----------------------------------------
> > Hi,
> > 
> > > On Sat, Nov 14, 2009 at 11:24, Pavel Hejn <pavelevap at post.cz> wrote:
> > >> Hi,
> > >>
> > >> there are 11 languages available for spellchecking in TinyMCE editor in
> > WordPress.
> > >> This technology uses Google Spell and there are 27 languages available, I
> > guess.
> > >> For example Czech language is also available, but is there any possibility
> to
> > set it in WordPress (and TinyMCE)?
> > >> Any way to make a plugin or something else?
> >  >
> >  > Nikolay Bachiyski wrote:
> > > This would be good for core patch, too. It will be great if you add
> > > the languages into the TinyMCE and file a ticket in the Trac:
> > 
> > A language can be added there (or the list of languages replaced) with 
> > the filter 'mce_spellchecker_languages'. It takes a string of comma 
> > separated "langname = locale", like this:
> > 
> > '+English=en,Danish=da,Dutch=nl,Finnish=fi'
> > 
> > The + indicated the default and the locale codes are ISO (only 2 
> > letters). More info: 
> > http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
> > 
> > Sample code:
> > 
> > <?php
> > 
> > add_filter( 'mce_spellchecker_languages', 'my_languages' );
> > function my_languages($str) {
> >    /*
> >    // add another
> >    $str .= ',Czech=cz';
> >    */
> > 
> >    // replace all
> >    $str = '+Czech=cz,English=en,German=de';
> > 
> >    return $str;
> > }
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > wp-polyglots mailing list
> > wp-polyglots at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-polyglots
> > 
> > 
> > 
> _______________________________________________
> wp-polyglots mailing list
> wp-polyglots at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-polyglots
> 
> 
> 


More information about the wp-polyglots mailing list