Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Parsers\MediaWikiMonthNameProvider Class Reference

A MonthNameProvider using MediaWiki's localization infrastructure. More...

+ Inheritance diagram for Wikibase\Repo\Parsers\MediaWikiMonthNameProvider:
+ Collaboration diagram for Wikibase\Repo\Parsers\MediaWikiMonthNameProvider:

Public Member Functions

 getLocalizedMonthNames ( $languageCode)
 
 getMonthNumbers ( $languageCode)
 Creates a replacements array using information retrieved via MediaWiki's Language object.
 

Detailed Description

A MonthNameProvider using MediaWiki's localization infrastructure.

Author
Thiemo Kreuz

Member Function Documentation

◆ getLocalizedMonthNames()

Wikibase\Repo\Parsers\MediaWikiMonthNameProvider::getLocalizedMonthNames (   $languageCode)
See also
MonthNameProvider::getLocalizedMonthNames
Parameters
string$languageCode
Returns
string[] Array mapping month numbers (1 to 12) to localized month names.

◆ getMonthNumbers()

Wikibase\Repo\Parsers\MediaWikiMonthNameProvider::getMonthNumbers (   $languageCode)

Creates a replacements array using information retrieved via MediaWiki's Language object.

Takes full month names, genitive names and abbreviations into account.

See also
MonthNameProvider::getMonthNumbers
Parameters
string$languageCode
Returns
int[] Array mapping localized month names (including full month names, genitive names and abbreviations) to month numbers (1 to 12).

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