mediawiki-extensions-Templa.../includes/TemplateDataMessageLocalizer.php
Umherirrender fb52519d7c Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I813e0d8fb266474eab5ad59ba33f6cd089099212
2024-10-20 13:20:47 +02:00

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 );
}
}