In multiligual sites webmaster need to call the editor by passing the language as a parameter to the editor constructor. Here there are some PHP minor changes:
in fckeditor.php:
add var $DefaultLanguage; (after var $CanBrowse;) ~line 28
in function ReturnFCKeditor() add:
if ($this->DefaultLanguage != '' ) {
$sLink .= "&DefaultLanguage=" . $this->DefaultLanguage;
}
after
if ( $this->CanBrowse != 'none' )
{
...
}
~line 74
in js/fck_config.js change
config.AutoDetectLanguage = true ;
to
config.AutoDetectLanguage = false ;
~line 57
then, when you call the editor, before $e = $editor->ReturnFCKeditor('e', '100%', '400px');
put:
$editor->DefaultLanguage = $current_lang;
where $current_lang must be something like 'en', 'es', etc.
Hope this will be heplfull for those that need multilingual features on their sites
in fckeditor.php:
add var $DefaultLanguage; (after var $CanBrowse;) ~line 28
in function ReturnFCKeditor() add:
if ($this->DefaultLanguage != '' ) {
$sLink .= "&DefaultLanguage=" . $this->DefaultLanguage;
}
after
if ( $this->CanBrowse != 'none' )
{
...
}
~line 74
in js/fck_config.js change
config.AutoDetectLanguage = true ;
to
config.AutoDetectLanguage = false ;
~line 57
then, when you call the editor, before $e = $editor->ReturnFCKeditor('e', '100%', '400px');
put:
$editor->DefaultLanguage = $current_lang;
where $current_lang must be something like 'en', 'es', etc.
Hope this will be heplfull for those that need multilingual features on their sites