Extension:UILangCode/pl

From Linux Web Expert

Podręcznik rozszerzeń MediaWiki
UILangCode
Status wydania: stabilne
Realizacja Rozszerzenie parsera
Opis Implements {{UILANGCODE}} magic word to get interface language of the current user
Autor(zy) Niklas Laxström (Nikerabbittalk)
Ostatnia wersja 1.0.0
Polityka zgodności Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.29+
Zmiany w bazie danych Nie
Licencja Nie określono
Pobieranie
Przykład Translatewiki.net
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Przetłumacz rozszerzenie UILangCode jeżeli jest dostępne na translatewiki.net

The UILangCode extension implements the {{UILANGCODE}} magic word to get interface language of the current user.

<translate> The extension can be retrieved directly from Git</translate> [?]:

  • <translate> Browse code</translate>
  • <translate> Some extensions have tags for stable releases.</translate>
  • <translate> Each branch is associated with a past MediaWiki release.</translate> <translate> There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).</translate>

<translate> Extract the snapshot and place it in the <tvar name=name>extensions/UILangCode/</tvar> directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: </translate>

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode.git

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/UILangCode/pl</tvar>|Download]] and move the extracted <tvar name=name>UILangCode/pl</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode%2Fpl
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'UILangCode/pl' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Usage

{{UILANGCODE}}

This will make the parser cache vary per user language, greatly decreasing hit rate and increasing storage.

Zobacz też