A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:LanguageSelector below:

Extension:LanguageSelector - MediaWiki

This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored.

If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox.

The LanguageSelector extension detects the interface language to use for anonymous visitors and provides a menu for selecting the user language on each page for logged-in users and anonymous visitors. It also provides an additional tag, <languageselector>, for embedding the selector into wiki pages and system messages.

Language detection is based on the Accept-Language header sent by the browser as part of the HTTP request. Users can also set their preferred language explicitly—this is handled by a separate cookie for anonymous visitors and in the user preferences for logged-in users.

For more comprehensive support for multilingual content, LanguageSelector can be combined with the Polyglot extension.

Language detection and cookie-based language preferences for anonymous users currently does not work with page caching (MediaWiki file cache, reverse HTTP proxies like squid, etc.). It may degrade cache performance render the cache useless, and lead people to seeing the page in a random language. Mediawiki's internal caches (parser, link, query, etc.) are unaffected.

You can specify the following settings in your LocalSettings.php (after including the extension file):

$wgLanguageSelectorLanguages
Languages to be offered to the user for selection. If set to NULL (the default), all languages known to MediaWiki (by $wgExtraLanguageNames ) are considered. If the Polyglot extension is installed and $wgPolyglotLanguages is set, that value will be used as a fallback. Setting $wgLanguageSelectorLanguages to a shorter list may be more convenient for users than selecting from a list with more than a hundred mostly useless entries. This variable must be an array so that you can declare it like this:
$wgLanguageSelectorLanguages = [ 'en', 'es', 'pt' ];

The codes "en", "es" and "pt" stand for English, Spanish and Portuguese respectively.

$wgLanguageSelectorShowCode (since rev:55711)
whether to show language codes before the native language name. Default is false;
$wgLanguageSelectorDetectLanguage
Language detection mode for anonymous visitors. Possible values:
$wgLanguageSelectorLocation
where to inject the language selector widget. Note that you will probably have to adjust your CSS styles to adopt the language selector to your wiki's style. Possible values of $wgLanguageSelectorLocation:
Example
$wgLanguageSelectorDetectLanguage = LANGUAGE_SELECTOR_USE_CONTENT_LANG;
$wgLanguageSelectorLocation = LANGUAGE_SELECTOR_IN_TOOLBOX;
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4