Last modified: 2013-03-10 14:49:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47954, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45954 - Unable to switch languages using LanguageSelector
Unable to switch languages using LanguageSelector
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
REL1_20-branch
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-10 12:34 UTC by Kelson [Emmanuel Engelhart]
Modified: 2013-03-10 14:49 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kelson [Emmanuel Engelhart] 2013-03-10 12:34:20 UTC
I'm really sorry to open a bug with such a title. I guess I have mis-configured something, but after hours of researches this is the last action I see I can take.

I have MW 1.20.3 with MLEB 2013-2 and I'm not able to use the language selector to change the language: the language-selector is stuck. It's stuck to the browser preferred language as an anonymous and to English as a logged user.

You can check it by yourself (I have tested with FF and Chrome) at http://www.kiwix.org

My MLEB related conf:
                                                
$LANG_EXT = "$IP/extensions/";
$wgExtensionAssetsPath = "{$wgScriptPath}/extensions";
$ceAllowConfirmedEmail = true;

require_once( "$LANG_EXT/Babel/Babel.php" );
$wgBabelMainCategory = false;
$wgBabelCategoryNames = array(
                              '0' => 'User %code%-0',
                              '1' => 'User %code%-1',
                              '2' => 'User %code%-2',
                              '3' => 'User %code%-3',
                              '4' => 'User %code%-4',
                              '5' => 'User %code%-5',
                              'N' => 'User %code%-N',
                              );

require_once( "$LANG_EXT/cldr/cldr.php" );

require_once( "$LANG_EXT/CleanChanges/CleanChanges.php" );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;

require_once( "$LANG_EXT/LocalisationUpdate/LocalisationUpdate.php" );
$wgLocalisationUpdateDirectory = "$IP/cache";

require_once( "$LANG_EXT/Translate/Translate.php" );
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
$wgGroupPermissions['sysop']['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;

$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation';

require_once( "$LANG_EXT/UniversalLanguageSelector/UniversalLanguageSelector.php" );
$wgHiddenPrefs[] = 'language';

Last remark: to be more precise, there is one case where I can change the language, it's just after logging out, then I'm free to change the language; but as soon as I have loaded a page with the new configured language, then the language selector is again stuck.
Comment 1 Niklas Laxström 2013-03-10 12:55:51 UTC
Please try without $wgHiddenPrefs[] = 'language';
Comment 2 Kelson [Emmanuel Engelhart] 2013-03-10 13:07:33 UTC
@Niklas Without this option, it's almost the same. Small difference: as a logged user, the language chosen is not always English, this is the one specified in the "preferences panel".
Comment 3 Niklas Laxström 2013-03-10 14:10:46 UTC
Given that language selection works if navigate to http://www.kiwix.org/w/index.php?title=Main_Page&action=edit I would recommend checking your url rewrite rules, that they don't drop the appended ?setlang parameter when rewriting it for PHP.
Comment 4 Kelson [Emmanuel Engelhart] 2013-03-10 14:49:49 UTC
You were absolutely right!
Thank you Niklas.
Really sorry about that.
I will close this ticket.

But, I can confirm that using "$wgHiddenPrefs[] = 'language';" makes the language selector unable to change the language for logged users.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links