More documentation!
authorSam Reed <reedy@users.mediawiki.org>
Sun, 29 May 2011 15:53:18 +0000 (15:53 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 29 May 2011 15:53:18 +0000 (15:53 +0000)
15 files changed:
languages/classes/LanguageBe_tarask.php
languages/classes/LanguageBg.php
languages/classes/LanguageBh.php
languages/classes/LanguageBs.php
languages/classes/LanguageEt.php
languages/classes/LanguageHi.php
languages/classes/LanguageHy.php
languages/classes/LanguageKaa.php
languages/classes/LanguageKk.php
languages/classes/LanguageKk_cyrl.php
languages/classes/LanguageKsh.php
languages/classes/LanguageKu_ku.php
languages/classes/LanguageLa.php
languages/classes/LanguageLn.php
languages/classes/LanguageMk.php

index c7920e5..25c3f70 100644 (file)
@@ -52,6 +52,10 @@ class LanguageBe_tarask extends Language {
         * but the characters used for this could be both U+0027 and U+2019.
         * This function unifies apostrophe sign in search index values
         * to enable seach using both apostrophe signs.
+        *
+        * @param $string string
+        *
+        * @return string
         */
        function normalizeForSearch( $string ) {
                wfProfileIn( __METHOD__ );
@@ -71,6 +75,10 @@ class LanguageBe_tarask extends Language {
        /**
         * Four-digit number should be without group commas (spaces)
         * So "1 234 567", "12 345" but "1234"
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( preg_match( '/^-?\d{1,4}(\.\d*)?$/', $_ ) ) {
index d6d3409..9ccb9a8 100644 (file)
@@ -8,6 +8,10 @@ class LanguageBg extends Language {
        /**
         * ISO number formatting: 123 456 789,99.
         * Avoid tripple grouping by numbers with whole part up to 4 digits.
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index 3272e2f..46e4418 100644 (file)
@@ -7,6 +7,11 @@
 class LanguageBh extends Language {
        /**
         * Use singular form for zero
+        *
+        * @param $count int
+        * @param $forms array
+        *
+        * @return string
         */
        function convertPlural( $count, $forms ) {
                if ( !count( $forms ) ) { return ''; }
index 927082e..c501b35 100644 (file)
@@ -34,6 +34,11 @@ class LanguageBs extends Language {
        # Invoked with {{GRAMMAR:case|word}}
        /**
         * Cases: genitiv, dativ, akuzativ, vokativ, instrumental, lokativ
+        *
+        * @param $word string
+        * @param $case string
+        *
+        * @return string
         */
        function convertGrammar( $word, $case ) {
                global $wgGrammarForms;
index 226c2d7..b469dec 100644 (file)
@@ -8,6 +8,10 @@
 class LanguageEt extends Language {
        /**
         * Avoid grouping whole numbers between 0 to 9999
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index fc9d0de..53a0fc1 100644 (file)
@@ -7,6 +7,11 @@
 class LanguageHi extends Language {
        /**
         * Use singular form for zero
+        *
+        * @param $count int
+        * @param $forms array
+        *
+        * @return string
         */
        function convertPlural( $count, $forms ) {
                if ( !count( $forms ) ) { return ''; }
index 714d9ce..0da090c 100644 (file)
@@ -63,6 +63,10 @@ class LanguageHy extends Language {
 
        /**
         * Armenian numeric format is "12 345,67" but "1234,56"
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index 5b6e76d..538e620 100644 (file)
@@ -35,6 +35,10 @@ class LanguageKaa extends Language {
 
        /**
         * It fixes issue with  lcfirst for transforming 'I' to 'ı'
+        *
+        * @param $string string
+        *
+        * @return string
         */
        function lcfirst ( $string ) {
                if ( substr( $string, 0, 1 ) === 'I' ) {
@@ -46,6 +50,10 @@ class LanguageKaa extends Language {
 
        /**
         * Avoid grouping whole numbers between 0 to 9999
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index f7d2d6d..7984f58 100644 (file)
@@ -347,6 +347,10 @@ class KkConverter extends LanguageConverter {
                return $text;
        }
 
+       /**
+        * @param $key string
+        * @return String
+        */
        function convertCategoryKey( $key ) {
                return $this->autoConvert( $key, 'kk' );
        }
@@ -397,6 +401,10 @@ class LanguageKk extends LanguageKk_cyrl {
 
        /**
         * It fixes issue with ucfirst for transforming 'i' to 'İ'
+        *
+        * @param $string string
+        *
+        * @return string
         */
        function ucfirst ( $string ) {
                $variant = $this->getPreferredVariant();
@@ -410,6 +418,10 @@ class LanguageKk extends LanguageKk_cyrl {
 
        /**
         * It fixes issue with  lcfirst for transforming 'I' to 'ı'
+        *
+        * @param $string string
+        *
+        * @return string
         */
        function lcfirst ( $string ) {
                $variant = $this->getPreferredVariant();
@@ -421,6 +433,11 @@ class LanguageKk extends LanguageKk_cyrl {
                return $string;
        }
 
+       /**
+        * @param $word string
+        * @param $case string
+        * @return string
+        */
        function convertGrammar( $word, $case ) {
                wfProfileIn( __METHOD__ );
 
index 3b65efa..a263225 100644 (file)
@@ -10,6 +10,11 @@ class LanguageKk_cyrl extends Language {
        # Invoked with {{GRAMMAR:case|word}}
        /**
         * Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms
+        *
+        * @param $word string
+        * @param $case stirng
+        *
+        * @return string
         */
        function convertGrammarKk_cyrl( $word, $case ) {
                global $wgGrammarForms;
@@ -707,6 +712,10 @@ class LanguageKk_cyrl extends Language {
 
        /**
         * Avoid grouping whole numbers between 0 to 9999
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index 026bdfe..dc37656 100644 (file)
@@ -64,6 +64,8 @@ class LanguageKsh extends Language {
         *
         * @param $word String
         * @param $case String
+        *
+        * @return string
         */
        function convertGrammar( $word, $case ) {
                $lord = strtolower( $word );
@@ -144,6 +146,10 @@ class LanguageKsh extends Language {
 
        /**
         * Avoid grouping whole numbers between 0 to 9999
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        public function commafy( $_ ) {
                if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
index a9ec64e..e433292 100644 (file)
@@ -8,6 +8,10 @@ class LanguageKu_ku extends Language {
 
        /**
         * Avoid grouping whole numbers between 0 to 9999
+        *
+        * @param $_ string
+        *
+        * @return string
         */
        function commafy( $_ ) {
 
index 81fc30c..657ac6e 100644 (file)
@@ -12,6 +12,11 @@ class LanguageLa extends Language {
         * Rules are far from complete.
         *
         * Cases: genitive, accusative, ablative
+        *
+        * @param $word string
+        * @param $case string
+        *
+        * @return string
         */
        function convertGrammar( $word, $case ) {
                global $wgGrammarForms;
index 11d276d..b96cf61 100644 (file)
@@ -8,7 +8,11 @@ class LanguageLn extends Language {
        /**
         * Use singular form for zero
         * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ln
-
+        *
+        * @param $count int
+        * @param $forms array
+        *
+        * @return string
         */
        function convertPlural( $count, $forms ) {
                if ( !count( $forms ) ) { return ''; }
index 9dc8a56..4ae7f41 100644 (file)
@@ -8,6 +8,11 @@ class LanguageMk extends Language {
        /**
         * Plural forms per
         * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#mk
+        *
+        * @param $count int
+        * @param $forms array
+        *
+        * @return string
         */
        function convertPlural( $count, $forms ) {
                if ( !count( $forms ) ) { return ''; }