Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\MediaWikiNumberLocalizer Class Reference

Localizes a numeric string using MediaWiki's Language class. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\MediaWikiNumberLocalizer:
+ Collaboration diagram for Wikibase\Lib\Formatters\MediaWikiNumberLocalizer:

Public Member Functions

 __construct (Language $language)
 
 localizeNumber ( $number)
 

Private Attributes

 $language
 

Detailed Description

Localizes a numeric string using MediaWiki's Language class.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\MediaWikiNumberLocalizer::__construct ( Language  $language)

Member Function Documentation

◆ localizeNumber()

Wikibase\Lib\Formatters\MediaWikiNumberLocalizer::localizeNumber (   $number)
See also
NumberLocalizer::localizeNumber
Parameters
string | int | float$number
Exceptions
InvalidArgumentException
Returns
string

Member Data Documentation

◆ $language

Wikibase\Lib\Formatters\MediaWikiNumberLocalizer::$language
private

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