Opened 12 years ago

Closed 11 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:

Description

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 12 years ago by Wojciech Olchawa

Keywords: HasPatch added; localization removed
Version: SVN

comment:2 Changed 11 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy