Hi! I installed and configured WYSIWYG with CKEditor in a multilingual Drupal 7 (last versions of Drupal and modules). I have the "Interface language" option when I configure a WYSIWYG profile, but I'd like the editor to automatically select the language of the administration interface. Is it possible with the current version of WYSIWYG? If not, how could it be achieved?

Thanks a lot!

CommentFileSizeAuthor
#1 language.jpg53.25 KBSeb_CKSource

Comments

Seb_CKSource’s picture

StatusFileSize
new53.25 KB

If you mean having a function where CKEditor will automatically change its language interface depending on Drupal's user interface language, then you should use the official CKEditor module. It has an "Auto-detect language" function which... well, automatically detects the user language.

twod’s picture

Status: Active » Fixed

It is also possible to activate similar functionality when using Wysiwyg module. CKEditor automatically tries to detect the user's language when leaving the language setting empty, which we didn't know about when making the language dropdown in Wysiwyg. I've made a note to include that functionality when we get around to fixing a couple of other language-related issues, as noted in the issue I've linked to below.

Until then you can use a simple custom module to enable this setting as described in #1304314: ckeditor - Autodetection language does'nt work (you might already have such a custom module on your site for other tweaks anyway, so just add the hook implementation there).
You can of course implement your own language switching logic in that hook as well and not just set a static value, just make sure you've downloaded the appropriate translations for CKEditor and its plugins.

The setting overrides from your custom module will persist even if Wysiwyg is updated.

Automatically closed -- issue fixed for 2 weeks with no activity.