Hi, I just upgraded to 4.7 but did a fresh install of the TinyMCE model (dropped old tinymce tables before installing new version of the module).

I first tried to get multiple language options for the spellcheck feature as described in:
http://tinymce.moxiecode.com/tinymce/docs/plugin_spellchecker.html

I tried adding to spellchecker/config.php the following versions of this line (which is what I understood from the link above):

$spellCheckerConfig[spellchecker_languages] = '+English=en,Espanol=es,';
$spellCheckerConfig[spellchecker_languages] = '+Espanol=es,English=en';
$spellCheckerConfig['spellchecker_languages'] = '+Espanol=es,English=en';

But none worked.

In any case, the main site is in Spanish, so I tried changing the default language to 'es':
$spellCheckerConfig['default.language'] = 'es';

Didn't work either.
I also went to admin/settings/tinymce and change the default language for the profile there to es, and no luck either.

I have not tried tinymce as a standalone feature, so I can't tell if the spellcheck plug-in for other-than-default-English is not (yet) supported in the Drupal tinymce module or if I'm doing something wrong or if it's a bug.

I did flush my cache (emptied cache table), disabled and enabled the tinymce module, looked for tinymce variables in the variable table and accessed the site from an alias domain just in case and to discard cache issues.

Has anyone has got the TinyMCE Drupal plugin to do Spellcheck in another language?

Thanks...

Comments

m3avrck’s picture

Hi, check the docs here:

http://tinymce.moxiecode.com/tinymce/docs/plugin_spellchecker.html

Basically, all you need to do is override theme_tinymce_theme() and add to your $init, 'spellchecker_languages : "+Spansh=sp"'. Should be fairly simple.

David Stosik’s picture

Where should I override this function?

Carlos Miranda Levy’s picture

Edit
tinymce\plugin_reg.php

Find the following code (line 96 on my release):

if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/spellchecker/')) {
  $plugins['spellchecker'] = array();
  $plugins['spellchecker']['theme_advanced_buttons3'] = array('spellchecker');
}

And the add the following line to it:
$plugins['spellchecker']['spellchecker_languages'] = array('+Espanol=es,English=en');

So that it looks like this:

if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/spellchecker/')) {
  $plugins['spellchecker'] = array();
  $plugins['spellchecker']['theme_advanced_buttons3'] = array('spellchecker');
  $plugins['spellchecker']['spellchecker_languages'] = array('+Espanol=es,English=en');
}

Of course, change Espanol=es for whatever language you want to add. The + marks the default.

I just did it and it works...

The other issue of changing the interface language just went away overnight... This morning, Tinymce properly responds to changes in the selection of interface language through Administer/options/tinymce... profile, etc. (I swear I flushed my cache before asking...)

------
Con paciencia y calma,
sube un burro a una palma

EduardoMercovich@drupal.org’s picture

Hello everybody (hola a todos).

I have a freshly installed TinyMCE (2.3.2) in a Drupal 4.7.6 localized to spanish.

Everything works OK, except that TinyMCE shows "{$lang_theme_paragraph}" instead of "paragraph" in the 'format' select box. It is just a display issue, since the editor works OK. I don't even try to make a spell check... :-\

In Drupal.org I found only Add Locale/Lang Support and Problems when selecting a language different from "en" but no resolution (I followed this last bug report).

I have googled for this also, but found nothing.

Any idea or help would be very welcome. :-)

Thanks in advance...

eclypse’s picture

I've looked for this solution since many hours!

And now, it works great.

Thanks a lot Carlos.