Load default language from global $language - fckeditor language auto-detect no good

Mr P - June 28, 2009 - 09:50
Project:FCKeditor - WYSIWYG HTML editor
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Issue tags:language detection
Description

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.

#1

Jorrit - July 25, 2009 - 13:42
Version:6.x-1.3-rc7» HEAD
Status:active» postponed

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

#2

Jorrit - September 8, 2009 - 19:44
Category:support request» feature request
 
 

Drupal is a registered trademark of Dries Buytaert.