Load default language from global $language - fckeditor language auto-detect no good
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
| Issue tags: | language detection |
Jump to:
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
Better language detection is a major point for a new version of the module.
#2