MediaWiki
1.34.0
|
Class for localization update hooks and static methods. More...
Classes | |
class | FinderTest |
@covers \LocalisationUpdate\Finder More... | |
class | JSONReader |
Reads MediaWiki JSON i18n files. More... | |
class | JSONReaderTest |
@covers \LocalisationUpdate\JSONReader More... | |
interface | Reader |
Interface for file readers. More... | |
class | ReaderFactory |
Constructs readers for files based on the names. More... | |
class | ReaderFactoryTest |
@covers \LocalisationUpdate\ReaderFactory More... | |
class | Updater |
Executes the localisation update. More... | |
class | UpdaterTest |
@covers \LocalisationUpdate\Updater More... | |
Static Public Member Functions | |
static | getDirectory () |
Returns a directory where updated translations are stored. More... | |
static | getFilename ( $language) |
Returns a filename where updated translations are stored. More... | |
static | onRecache (LocalisationCache $lc, $code, array &$cache) |
Hook: LocalisationCacheRecache. More... | |
static | onRecacheFallback (LocalisationCache $lc, $code, array &$cache) |
Hook: LocalisationCacheRecacheFallback. More... | |
Class for localization update hooks and static methods.
Definition at line 6 of file LocalisationUpdate.php.
|
static |
Returns a directory where updated translations are stored.
Definition at line 51 of file LocalisationUpdate.php.
References $wgCacheDirectory.
Referenced by Update\execute(), onRecache(), and onRecacheFallback().
|
static |
Returns a filename where updated translations are stored.
string | $language | Language tag |
Definition at line 64 of file LocalisationUpdate.php.
Referenced by Update\execute(), onRecache(), and onRecacheFallback().
|
static |
Hook: LocalisationCacheRecache.
LocalisationCache | $lc | |
string | $code | |
array | &$cache |
Definition at line 32 of file LocalisationUpdate.php.
References $cache, getDirectory(), and getFilename().
|
static |
Hook: LocalisationCacheRecacheFallback.
LocalisationCache | $lc | |
string | $code | |
array | &$cache |
Definition at line 13 of file LocalisationUpdate.php.
References $cache, FormatJson\decode(), getDirectory(), and getFilename().