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
return wfMessage( $msg )->inLanguage( $this );
}
- /**
- * Get the native language name of $code.
- * Only if defined in MediaWiki, no other data like CLDR.
- * @param string $code
- * @return string
- * @deprecated since 1.20, use fetchLanguageName()
- */
- function getLanguageName( $code ) {
- return self::fetchLanguageName( $code );
- }
-
/**
* @param string $key
* @return string