Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
GroupStatistics Class Reference
Inheritance diagram for GroupStatistics:

Public Member Functions

 execute ()
 

Public Attributes

 $mostSpokenLanguages
 Array of the most spoken languages in the world.
 
 $localisedWeights
 Variable with key-value pairs with a named index and an array of key-value pairs where the key is a MessageGroup ID and the value is a weight of the group in the sum of the values for all the groups in the array.
 
 $wikimediaCodeMap
 Code map to map localisation codes to Wikimedia project codes.
 

Detailed Description

Definition at line 23 of file groupStatistics.php.

Constructor & Destructor Documentation

◆ __construct()

GroupStatistics::__construct ( )

Definition at line 189 of file groupStatistics.php.

Member Function Documentation

◆ execute()

GroupStatistics::execute ( )

Definition at line 272 of file groupStatistics.php.

Member Data Documentation

◆ $localisedWeights

GroupStatistics::$localisedWeights
Initial value:
= [
'wikimedia' => [
'core' => 50,
'ext-0-wikimedia' => 50
],
'fundraiser' => [
'ext-di-di' => 16,
'ext-di-pfpg' => 84,
],
'mediawiki' => [
'core' => 50,
'ext-0-wikimedia' => 25,
'ext-0-all' => 25
]
]

Variable with key-value pairs with a named index and an array of key-value pairs where the key is a MessageGroup ID and the value is a weight of the group in the sum of the values for all the groups in the array.

Definitions in this variable can be used to report weighted meta localisation scores for the 50 most spoken languages.

Todo
Allow weighted reporting for all available languages.

Definition at line 101 of file groupStatistics.php.

◆ $mostSpokenLanguages

GroupStatistics::$mostSpokenLanguages

Array of the most spoken languages in the world.

Source: https://stats.wikimedia.org/EN/Sitemap.htm.

Key value pairs of: [MediaWiki localisation code] => array( [position in top 50], [speakers in millions], [continent where localisation is spoken] )

Definition at line 35 of file groupStatistics.php.

◆ $wikimediaCodeMap

GroupStatistics::$wikimediaCodeMap

Code map to map localisation codes to Wikimedia project codes.

Only exclusion and remapping is defined here. It is assumed that the first part of the localisation code is the WMF project name otherwise (zh-hans -> zh).

Definition at line 123 of file groupStatistics.php.


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