[dokuwiki] Re: fckeditor plugin spellchecker

  • From: Anika Henke <anika@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 25 Jul 2009 09:09:06 +0100

Myron Turner wrote:
I can think of a number of ways to determine language preference. You can assign each language preference to a dokuwiki group, check for the group at login and set a cookie which can then be checked in spellchecker.php.

Or if your users come from different countries you can determine country of origin of IP addresses using a free service from maxmind.com. They provide a simple php api to read a database which you download to your server and can update every month. The database which you want is GeoCityLite.

Just a side note: Deciding upon the language of the spellchecker depending on the language/location/preference of the user doesn't make much sense. ;-) It's the language of the *text* that's important!

In this context I always felt the translation plugin should take heed of the chosen language by adding the according lang paramter to the main content. (In the default template on a Spanish page this would be <div class="page" lang="es" dir="ltr">. And on a Hebrew page <div class="page" lang="he" dir="rtl">.)

The same variable that sets this parameter could be used for a spellchecker.

Anika
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: