Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git] / languages / classes / LanguageKsh.php
index 09c5727..9ef53e5 100644 (file)
@@ -28,7 +28,7 @@
  * @ingroup Language
  */
 class LanguageKsh extends Language {
-       static $familygender = array(
+       private static $familygender = [
                // Do not add male wiki families, since that's the default.
                // No need add neuter wikis having names ending in -wiki.
                        'wikipedia' => 'f',
@@ -40,7 +40,7 @@ class LanguageKsh extends Language {
                        'wikitravel' => 'n',
                        'wikia' => 'f',
                        'translatewiki.net' => 'n',
-               );
+               ];
 
        /**
         * Convert from the nominative form of a noun to other cases.
@@ -63,13 +63,11 @@ class LanguageKsh extends Language {
         *
         * Possible values for the type of genitive are:
         *      Sing, Iehr            prepositioned genitive = possessive dative
-        *      Vun, Fon, -omitted-   postpositioned genitive
-        *                                     = preposition "vun" with dative
+        *      Vun, Fon, -omitted-   postpositioned genitive = preposition "vun" with dative
         *
         * Values of case overrides & prepositions, in the order of preceedence:
         *      Sing, Iehr            possessive dative = prepositioned genitive
-        *      Vun, Fon              preposition "vun" with dative
-        *                                           = postpositioned genitive
+        *      Vun, Fon              preposition "vun" with dative = postpositioned genitive
         *      En, em                preposition "en" with dative
         *
         * Values for object gender specifiers of the possessive dative, or
@@ -83,15 +81,15 @@ class LanguageKsh extends Language {
         * Contents of the leftmost table column can be copied and pasted as
         * "case" values.
         *
-        * @param $word String
-        * @param $case String
+        * @param string $word
+        * @param string $case
         *
         * @return string
         */
        function convertGrammar( $word, $case ) {
                $lord = strtolower( $word );
                $gender = 'm'; // Nuutnaarel // default
-               if ( preg_match ( '/wiki$/', $lord ) ) {
+               if ( preg_match( '/wiki$/', $lord ) ) {
                        $gender = 'n';  // Dat xyz-wiki
                }
                if ( isset( self::$familygender[$lord] ) ) {
@@ -168,7 +166,7 @@ class LanguageKsh extends Language {
        /**
         * Avoid grouping whole numbers between 0 to 9999
         *
-        * @param $_ string
+        * @param string $_
         *
         * @return string
         */
@@ -183,12 +181,16 @@ class LanguageKsh extends Language {
        /**
         * Handle cases of (1, other, 0) or (1, other)
         *
-        * @param $count int
-        * @param $forms array
+        * @param int $count
+        * @param array $forms
         *
         * @return string
         */
        function convertPlural( $count, $forms ) {
+               $forms = $this->handleExplicitPluralForms( $count, $forms );
+               if ( is_string( $forms ) ) {
+                       return $forms;
+               }
                if ( !count( $forms ) ) {
                        return '';
                }