Help:Languages

From Illapedia

Jump to: navigation, search

With the new update, putting {{languages}} on all pages is no longer necessary. This page explains why and what has improved.

Contents

[edit] 1 Multilang

Multilang is an extension that allows to change language according to the user's preference setting when there's no possibility for a /de page. This is usually on Template or Category pages.

[edit] 1.1 Usage

<multilang>
@de|"Das ist ein deutscher Text."
@en|"This is an English text."
</multilang>

"This is an English text."


[edit] 2 Polyglot

The Polyglot extension provides automatic redirects based on user language. This allows for multilingual content to be handeled more easily on a single wiki. Polyglot also changes the interlanguage links in the sidebar to automatically show available localized version of each page on the same wiki.

Automatic redirects are performed based on a naming scheme: when visiting the page Foo with the user language set to de (German), Polyglot would redirect the user to Foo/de, if it exists. This automatic redirection can be bypassed by visiting Foo/, which will always show Foo proper. The base page (Foo in this example) is considered to be associated with the wiki's content language ($wgLanguageCode in LocalSettings.php), which is English on Illapedia.

The link to the other language of the page you're viewing can be found in a seperate box in the Sidebar (if the page exists)

[edit] 3 LanguageSelector

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

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.

The LanguageSelector can be found in the Toolbox in the Sidebar.

Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.

[edit] 4 See also

Personal tools