MediaWiki REL1_30
LocalisationUpdate Class Reference

Class for localization update hooks and static methods. More...

Static Public Member Functions

static getDirectory ()
 Returns a directory where updated translations are stored.
 
static getFilename ( $language)
 Returns a filename where updated translations are stored.
 
static onRecache (LocalisationCache $lc, $code, array &$cache)
 Hook: LocalisationCacheRecache.
 
static onRecacheFallback (LocalisationCache $lc, $code, array &$cache)
 Hook: LocalisationCacheRecacheFallback.
 

Detailed Description

Class for localization update hooks and static methods.

Definition at line 6 of file LocalisationUpdate.class.php.

Member Function Documentation

◆ getDirectory()

static LocalisationUpdate::getDirectory ( )
static

Returns a directory where updated translations are stored.

Returns
string|false False if not configured.
Since
1.1

Definition at line 49 of file LocalisationUpdate.class.php.

References $wgCacheDirectory.

◆ getFilename()

static LocalisationUpdate::getFilename ( $language)
static

Returns a filename where updated translations are stored.

Parameters
string$languageLanguage tag
Returns
string
Since
1.1

Definition at line 62 of file LocalisationUpdate.class.php.

◆ onRecache()

static LocalisationUpdate::onRecache ( LocalisationCache $lc,
$code,
array & $cache )
static

Hook: LocalisationCacheRecache.

Definition at line 28 of file LocalisationUpdate.class.php.

References $cache, $code, and $dir.

◆ onRecacheFallback()

static LocalisationUpdate::onRecacheFallback ( LocalisationCache $lc,
$code,
array & $cache )
static

Hook: LocalisationCacheRecacheFallback.

Definition at line 10 of file LocalisationUpdate.class.php.

References $cache, $code, and $dir.


The documentation for this class was generated from the following file: