X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=68a3052e3d9c701947de2d807734f0940c0e0db1;hb=19cd88808ca3cf410c2cf25c2eb6b226c34cea4c;hp=0bd227621f59bb4a456fce48c41e19011a5a9d54;hpb=be619b838620a61a17c04872ca27ba74c5cf1a92;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 0bd227621f..68a3052e3d 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -802,33 +802,6 @@ class Language { return $this->getMessageFromDB( "tog-$tog" ); } - /** - * Get native language names, indexed by code. - * Only those defined in MediaWiki, no other data like CLDR. - * If $customisedOnly is true, only returns codes with a messages file - * - * @param bool $customisedOnly - * - * @return array - * @deprecated since 1.20, use fetchLanguageNames() - */ - public static function getLanguageNames( $customisedOnly = false ) { - return self::fetchLanguageNames( null, $customisedOnly ? 'mwfile' : 'mw' ); - } - - /** - * Get translated language names. This is done on best effort and - * by default this is exactly the same as Language::getLanguageNames. - * The CLDR extension provides translated names. - * @param string $code Language code. - * @return array Language code => language name - * @since 1.18.0 - * @deprecated since 1.20, use fetchLanguageNames() - */ - public static function getTranslatedLanguageNames( $code ) { - return self::fetchLanguageNames( $code, 'all' ); - } - /** * Get an array of language names, indexed by code. * @param null|string $inLanguage Code of language in which to return the names