summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/cldr/includes/CldrNames.php')
-rw-r--r--MLEB/cldr/includes/CldrNames.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/MLEB/cldr/includes/CldrNames.php b/MLEB/cldr/includes/CldrNames.php
index 74d20322..c9094bef 100644
--- a/MLEB/cldr/includes/CldrNames.php
+++ b/MLEB/cldr/includes/CldrNames.php
@@ -1,5 +1,7 @@
<?php
+use MediaWiki\MediaWikiServices;
+
/**
* A base class for querying translated names from CLDR data.
*
@@ -16,7 +18,8 @@ class CldrNames {
* @return string
*/
public static function getFileName( $code ) {
- return Language::getFileName( 'CldrNames', $code, '.php' );
+ return MediaWikiServices::getInstance()->getLanguageNameUtils()
+ ->getFileName( 'CldrNames', $code, '.php' );
}
/**
@@ -25,6 +28,7 @@ class CldrNames {
* @return string
*/
public static function getOverrideFileName( $code ) {
- return Language::getFileName( 'LocalNames', $code, '.php' );
+ return MediaWikiServices::getInstance()->getLanguageNameUtils()
+ ->getFileName( 'LocalNames', $code, '.php' );
}
}