Extension:UILangCode/de-formal
![]() Release status: stable |
|
---|---|
Implementation | Parser extension |
Description | Implements {{UILANGCODE}} magic word to get interface language of the current user |
Author(s) | Niklas Laxström (NikerabbitDiskussion) |
Latest version | 1.0.0 |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.29+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
Example | Translatewiki.net |
Quarterly downloads | 1 (Ranked 158th) |
Translate the UILangCode extension if it is available at translatewiki.net | |
The UILangCode extension implements the {{UILANGCODE}}
magic word to get interface language of the current user.
Download
The extension can be retrieved directly from Git [?]:
- Browse code
- Some extensions have tags for stable releases.
- Browse tags
- Select the tag
- Click "snapshot"
- Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).
- Browse branches
- Select a branch name
- Click "Weiter"
Extract the snapshot and place it in the extensions/UILangCode/ 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:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode.git
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
UILangCode
im Ordnerextensions/
ablegen.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode - Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
wfLoadExtension( 'UILangCode' );
- Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Usage
{{UILANGCODE}}
This will make the parser cache vary per user language, greatly decreasing hit rate and increasing storage.