Extension:LanguageSelector/tr

LanguageSelector uzantısı, anonim ziyaretçiler için kullanılacak arabirim dilinin algılanmasını ve oturum açmış kullanıcılar ve anonim ziyaretçiler için her sayfada kullanıcı dilini seçmek için bir menü sağlar. Ayrıca, seçiciyi viki sayfalarına ve sistem mesajlarına katıştırmak için ek bir &lt;languageselector&gt; etiketi sağlar.

Dil algılama, HTTP isteğinin bir parçası olarak tarayıcı tarafından gönderilen Kabul Et Dili başlığına dayanır. Kullanıcılar ayrıca tercih ettikleri dili açıkça belirleyebilirler. Bu, anonim ziyaretçiler için ayrı bir çerez tarafından ve giriş yapmış kullanıcılar için kullanıcı tercihlerinde ele alınır.

Çok dilli içerik için daha kapsamlı destek için, LanguageSelector, Polyglot uzantısı ile birleştirilebilir.

Configuration
You can specify the following settings in your LanguageSelector.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 ) 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 you can declare it like this:

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


 * $wgLanguageSelectorShowCode (since 55711): whether to show language codes before the native language name. Default is false;


 * $wgLanguageSelectorDetectLanguage: Language detection mode for anonymous visitors. Possible values:
 *  : do not use detection, always use the wiki's content language (this is mediawiki's normal behavior).
 *  : use the wiki's content language, setting, if accepted by the client.
 *  : use the client's preferred language, if it is in $wgLanguageSelectorLanguages.
 * $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:
 *  : do not show language selector. This can be useful if you only want to use the auto-detection feature, or only want the selector on a few pages, or if you want to place it manually by putting it into an appropriate system message.
 *  : inject a dropdown box at the top of page content. This is the default, but it looks quite ugly without extra CSS rules applied.
 *  : inject a dropdown box at the bottom of the toolbox in the sidebar. This only works with the MonoBook skin, or skins explicitly supporting the MonoBookTemplateToolboxEnd hook.
 *  : inject the language selector as a portlet in the sidebar, similar to how interlanguage-links are shown. Works with MonoBook skin, may also work with some SkinTemplate-based skins.
 *  : inject a dropdown box at the end of the sitenotice text. Ugly without additional CSS rules applied. Works with MonoBook skin, may also work with some SkinTemplate-based skins.
 *  : inject a dropdown box at the end of the page title. Ugly without additional CSS rules applied. Works with MonoBook skin, may also work with some SkinTemplate-based skins.
 *  : inject a dropdown box at the end of the subtitle. Ugly without additional CSS rules applied. Works with MonoBook skin, may also work with some SkinTemplate-based skins.
 *  : inject a dropdown box at the end of the category box. Ugly without additional CSS rules applied. Works with MonoBook skin, may also work with some SkinTemplate-based skins.

Example: