﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1565	Plugin language the same, as user's prefered language	B_aniaczek		"I think, FCKeditor language settings should be created from users preferred language.

Things to modify:


File ''FCKeditor/FCKeditor.body.php''

after line: 
 $form->textbox1 = $parser->parse($form->textbox1, $wgTitle, $options)->getText();
add line: 
 '''$userLang = $wgUser->getOption( 'language' );'''
after line: 
  oFCKeditor.ToolbarSet = '$wgFCKEditorToolbarSet' ;
add lines:
 '''oFCKeditor.Config[ 'AutoDetectLanguage' ] = false ;'''

 '''oFCKeditor.Config[ 'DefaultLanguage' ]    = '$userLang' ;'''


File ''FCKeditor/fckeditor_config.js''
comment lines:
 '''//'''FCKConfig.AutoDetectLanguage	= false ;

 '''//'''FCKConfig.DefaultLanguage = 'en' ;

--------------------------
Also - I think, that in the file ''FCKeditor/FCKeditor.body.php'', inside onMessagesPreLoad()
line:
 $lang = $wgUser->getOption( 'language' ''', $wgContLanguageCode''' );
should be:
 $lang = $wgUser->getOption( 'language' );

----
Tested with MW1.11.0 and FCK 2.5 SVN (build 16925)
"	New Feature	closed	Normal		Project : MediaWiki+FCKeditor	SVN (FCKeditor) - Retired	fixed	fixed	
