Hiding of language selector possible ?

Jump to: navigation, search

How can I hide the language selector on each page with MediaWiki 1.17.0 ?

For others: I already found this similar threads:

  • hiding selector in preferences of the user
$wgHiddenPrefs[] = 'language';

on reference Manual:$wgLanguageCode

  • disabling unused languages (a german thread)

on reference Manual:$wgLanguageCode/de

But that's not what I mean. My local Wiki needs no language selector. How can I get rid of it.

Thank you for answering ...

StephenFalken21:47, 30 December 2011

You could hide the sidebar entry via MediaWiki:Common.css. To disable the user pref, see $wgHiddenPrefs. To use a certain language as default see $wgDefaultUserOptions. To roll back all possible prior language settings to a default use maintenance/userOptions.php

Subfader16:33, 31 December 2011

Thank you for answering so fast, Subfader.

"You could hide the sidebar entry via MediaWiki:Common.css."


Please could you give me an example for this ... ? Of course I use Common.css but only for my background color settings. I'm not really familiar with CSS for hiding something.

"To disable the user pref, see $wgHiddenPrefs.
To use a certain language as default see $wgDefaultUserOptions.
To roll back all possible prior language settings to a default use maintenance/userOptions.php."

Thats not what I need. In my Wiki there is a select box straigth under the page title. I want to disable or hide this language selector because I don't like it in my layout. In my older system (MediaWiki 1.15.0) there is no such a language selector ...

StephenFalken01:58, 2 January 2012

It sounds like you installed an extension to specifically do that. MediaWiki doesn't do that by itself. You should disable that extension (Which extensions you have enabled should be visible on Special:Version ).

The language selector in special:preferences really doesn't affect page content, and I can't imagine that you actually want to hide that.

Bawolff07:50, 2 January 2012

Thank you for this information. You'are right ... one collegue has installed a new extension language selector without informing me ... and he also forget to migrate the extension from 1.15.0 to 1.17.0  :-)

Shame on me :-(

Sorry for boring you ...

May this thread help others in the same situation!

StephenFalken11:47, 2 January 2012
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox