Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslationStats Class Reference

Contains methods that provide statistics for message groups. More...

Static Public Member Functions

static getPercentageTranslated ( $group, $languages, $threshold=false, $simple=false)
 Returns translated percentage for message group in given languages.
 

Detailed Description

Contains methods that provide statistics for message groups.

Definition at line 19 of file TranslationStats.php.

Member Function Documentation

◆ getPercentageTranslated()

static TranslationStats::getPercentageTranslated ( $group,
$languages,
$threshold = false,
$simple = false )
static

Returns translated percentage for message group in given languages.

Parameters
string$groupUnique key identifying the group
string[]$languagesList of language codes
bool | int$thresholdMinimum required percentage translated to return. Other given language codes will not be returned.
bool$simpleReturn only codes or code/pecentage pairs
Returns
(float|string)[] Array of key value pairs code (string)/percentage (float) or array of codes, depending on $simple

Definition at line 33 of file TranslationStats.php.


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