From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- languages/classes/LanguageUk.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'languages/classes/LanguageUk.php') diff --git a/languages/classes/LanguageUk.php b/languages/classes/LanguageUk.php index 6c0cf8da..206c5aa3 100644 --- a/languages/classes/LanguageUk.php +++ b/languages/classes/LanguageUk.php @@ -5,8 +5,15 @@ * @ingroup Language */ class LanguageUk extends Language { - # Convert from the nominative form of a noun to some other case - # Invoked with {{grammar:case|word}} + + /** + * Convert from the nominative form of a noun to some other case + * Invoked with {{grammar:case|word}} + * + * @param $word string + * @param $case string + * @return string + */ function convertGrammar( $word, $case ) { global $wgGrammarForms; if ( isset( $wgGrammarForms['uk'][$case][$word] ) ) { @@ -56,13 +63,18 @@ class LanguageUk extends Language { return $word; } + /** + * @param $count int + * @param $forms array + * @return string + */ function convertPlural( $count, $forms ) { if ( !count( $forms ) ) { return ''; } // if no number with word, then use $form[0] for singular and $form[1] for plural or zero if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1]; - // FIXME: CLDR defines 4 plural forms. Form for decimals is missing/ + // @todo FIXME: CLDR defines 4 plural forms. Form for decimals is missing/ // See http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#uk $forms = $this->preConvertPlural( $forms, 3 ); @@ -79,8 +91,12 @@ class LanguageUk extends Language { } } - /* + /** * Ukrainian numeric format is "12 345,67" but "1234,56" + * + * @param $_ string + * + * @return string */ function commafy( $_ ) { if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) { -- cgit v1.2.3-54-g00ecf