I use Ckeditor 3.6.2 for a bilingual site (UK & FR).
Ckeditor keeps default language (UK) when I change language option

thanks

Comments

MarkU’s picture

This is a serious problem for anyone (i.e. me!) developing a Multilingual Site with authors contributing content in their own languages - in my case English, Welsh, Chinese and German (using Entity Translation).

Whilst the Drupal Interface can be localised in a number of ways (User Preference, Browser language detection etc.) AND ordinarily CKEditor's default setting automatically localizes the editor to the language of the user, the latter doesn't work when installed using the WYSIWYG Module processes. [Unhappy Chinese and Germans !]

twod’s picture

Status: Active » Closed (duplicate)

I did not know CKEditor would try to autodetect the language if that setting is left empty.
You can override the CKEditor language setting with anything you'd like with a small module like this:

sites/default/modules/MYMODULE/MYMODULE.info

name = My module
description = Tweaks some CKEditor settings and stuff
core = 6.x

sites/default/modules/MYMODULE/MYMODULE.module

function MYMODULE_wysiwyg_editor_settings_alter(&$settings, $context) {
  if ($context['profile']->editor == 'ckeditor') {
    $settings['language'] = '';
  }
}

This is something we'll have to keep in mind for #532794: Use current user's language, #1055298: Limit language selection to installed languages, #362318: Limit wysiwyg language selection to available languages.