mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 15:36:47 +00:00
fb52519d7c
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I813e0d8fb266474eab5ad59ba33f6cd089099212
26 lines
507 B
PHP
26 lines
507 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\TemplateData;
|
|
|
|
use MediaWiki\Language\Language;
|
|
use MessageLocalizer;
|
|
|
|
/**
|
|
* @license GPL-2.0-or-later
|
|
* @codeCoverageIgnore Trivial facade
|
|
*/
|
|
class TemplateDataMessageLocalizer implements MessageLocalizer {
|
|
|
|
private Language $language;
|
|
|
|
public function __construct( Language $language ) {
|
|
$this->language = $language;
|
|
}
|
|
|
|
/** @inheritDoc */
|
|
public function msg( $key, ...$params ) {
|
|
return wfMessage( $key, ...$params )->inLanguage( $this->language );
|
|
}
|
|
|
|
}
|