Load default language from global $language - anyone know how to do this? FCKedotor's auto-detect doesn't seem to work - and I would prefer it fckeditors ui language went of sites current language anyway.

I'm new to coding...

I'm guessing you can add code to fckeditor.module so that, if appearance configuration is turned off (in fckeditor profile settings), the $language global can be loaded into set fckeditor ui language.

//if ($conf['appearance_conf'] == 'f') {
$js .= "\n". $js_id .".ToolbarSet = \"". $toolbar ."\";
". $js_id .".Config['SkinPath'] = ". $js_id .".BasePath + \"editor/skins/". $conf['skin'] ."/\";
". $js_id .".Config['DefaultLanguage'] = \"". $conf['lang'] ."\";
". $js_id .".Config['AutoDetectLanguage'] = ". ($conf['auto_lang']=="t"?"true":"false") .";
". $js_id .".Height = \"". $height ."\";
". $js_id .".Config['ToolbarStartExpanded'] = ". ($conf['expand']=="t"?"true":"false") .";
". $js_id .".Width = \"". $width ."\";\n";
//}

http://api.drupal.org/api/global/language/6

Whenever I do ANYTHING to the fckeditor.module I get WSOD. Could/should something be done in fckeditor.config.js instead?

Advice appreciated.

Comments

Jorrit’s picture

Version: 6.x-1.3-rc7 » master
Status: Active » Postponed
Issue tags: +language detection

Better language detection is a major point for a new version of the module.

Jorrit’s picture

Category: support » feature
Jorrit’s picture

Status: Postponed » Closed (won't fix)

Please try CKEditor (http://drupal.org/project/ckeditor).