Opened 17 years ago

Closed 16 years ago

#1565 closed New Feature (fixed)

Plugin language the same, as user's prefered language

Reported by: B_aniaczek Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN (FCKeditor) - Retired
Keywords: fixed Cc:


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)

Change History (2)

comment:1 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added; localization removed
Version: SVN

comment:2 Changed 16 years ago by Artur Formella

Keywords: fixed added; HasPatch removed
Resolution: fixed
Status: newclosed

Fixed with ticket #1569

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy