X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=2bc4554e5dc711050ffb787d6e5d645fa82d2d5f;hb=7359b97354b49faa4c18597dad89914e67807005;hp=99dc1845617ed81f1753c565ca147d6d79f8c8b0;hpb=78f56b0753b6dc9683188c06601a7aa71e727f20;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 99dc184561..2bc4554e5d 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -345,7 +345,7 @@ class Language { /** * Returns true if a language code is an IETF tag known to MediaWiki. * - * @param string $code + * @param string $tag * * @since 1.21 * @return bool @@ -1026,6 +1026,11 @@ class Language { /** * Pass through result from $dateTimeObj->format() + * @param DateTime|bool|null &$dateTimeObj + * @param string $ts + * @param DateTimeZone|bool|null $zone + * @param string $code + * @return string */ private static function dateTimeObjFormat( &$dateTimeObj, $ts, $zone, $code ) { if ( !$dateTimeObj ) { @@ -3808,8 +3813,8 @@ class Language { * Checks that convertPlural was given an array and pads it to requested * amount of forms by copying the last one. * - * @param int $count How many forms should there be at least * @param array $forms Array of forms given to convertPlural + * @param int $count How many forms should there be at least * @return array Padded array of forms or an exception if not an array */ protected function preConvertPlural( /* Array */ $forms, $count ) { @@ -3992,7 +3997,7 @@ class Language { * Get the list of variants supported by this language * see sample implementation in LanguageZh.php * - * @return array an array of language codes + * @return array An array of language codes */ public function getVariants() { return $this->mConverter->getVariants(); @@ -4284,7 +4289,7 @@ class Language { * * @since 1.22 * @param string $code Language code - * @return array array( fallbacks, site fallbacks ) + * @return array Array( fallbacks, site fallbacks ) */ public static function getFallbacksIncludingSiteLanguage( $code ) { global $wgLanguageCode; @@ -4339,7 +4344,7 @@ class Language { * * @since 1.19 * @param string $code Language code - * @return array of message keys (strings) + * @return array Array of message keys (strings) */ public static function getMessageKeysFor( $code ) { return self::getLocalisationCache()->getSubItemList( $code, 'messages' ); @@ -4611,7 +4616,7 @@ class Language { * @param Title $title Title object to link * @param int $offset * @param int $limit - * @param array|string $query Optional URL query parameter string + * @param array $query Optional URL query parameter string * @param bool $atend Optional param for specified if this is the last page * @return string */ @@ -4740,6 +4745,7 @@ class Language { /** * Find the index number of the plural rule appropriate for the given number + * @param int $number * @return int The index number of the plural rule */ public function getPluralRuleIndexNumber( $number ) { @@ -4753,6 +4759,7 @@ class Language { * For example, if the language is set to Arabic, getPluralType(5) should * return 'few'. * @since 1.22 + * @param int $number * @return string The name of the plural rule type, e.g. one, two, few, many */ public function getPluralRuleType( $number ) {