diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /languages/classes/LanguageKk_cyrl.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'languages/classes/LanguageKk_cyrl.php')
-rw-r--r-- | languages/classes/LanguageKk_cyrl.php | 70 |
1 files changed, 49 insertions, 21 deletions
diff --git a/languages/classes/LanguageKk_cyrl.php b/languages/classes/LanguageKk_cyrl.php index 5a7bbf36..22fe4289 100644 --- a/languages/classes/LanguageKk_cyrl.php +++ b/languages/classes/LanguageKk_cyrl.php @@ -26,15 +26,16 @@ * * @ingroup Language */ +// @codingStandardsIgnoreStart Ignore class name is not in camel caps format error class LanguageKk_cyrl extends Language { - + // @codingStandardsIgnoreEnd # Convert from the nominative form of a noun to some other case # Invoked with {{GRAMMAR:case|word}} /** * Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms * - * @param $word string - * @param $case string + * @param string $word + * @param string $case * * @return string */ @@ -203,7 +204,10 @@ class LanguageKk_cyrl extends Language { } elseif ( in_array( $wordLastVowel, $backVowels ) ) { $word = $word . "тан"; } - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Sonants ) + || in_array( $wordEnding, $Sibilants ) + ) { if ( in_array( $wordLastVowel, $frontVowels ) ) { $word = $word . "ден"; } elseif ( in_array( $wordLastVowel, $backVowels ) ) { @@ -237,7 +241,10 @@ class LanguageKk_cyrl extends Language { case "comitative": # kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "пен"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "мен"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "бен"; @@ -247,7 +254,10 @@ class LanguageKk_cyrl extends Language { case "possessive comitative": # täweldık + kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "пенен"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "менен"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "бенен"; @@ -259,8 +269,8 @@ class LanguageKk_cyrl extends Language { } /** - * @param $word string - * @param $case string + * @param string $word + * @param string $case * @return string */ function convertGrammarKk_latn( $word, $case ) { @@ -428,7 +438,10 @@ class LanguageKk_cyrl extends Language { } elseif ( in_array( $wordLastVowel, $backVowels ) ) { $word = $word . "tan"; } - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Sonants ) + || in_array( $wordEnding, $Sibilants ) + ) { if ( in_array( $wordLastVowel, $frontVowels ) ) { $word = $word . "den"; } elseif ( in_array( $wordLastVowel, $backVowels ) ) { @@ -462,7 +475,10 @@ class LanguageKk_cyrl extends Language { case "comitative": # kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "pen"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "men"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "ben"; @@ -472,7 +488,10 @@ class LanguageKk_cyrl extends Language { case "possessive comitative": # täweldık + kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "penen"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "menen"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "benen"; @@ -484,8 +503,8 @@ class LanguageKk_cyrl extends Language { } /** - * @param $word string - * @param $case string + * @param string $word + * @param string $case * @return string */ function convertGrammarKk_arab( $word, $case ) { @@ -653,7 +672,10 @@ class LanguageKk_cyrl extends Language { } elseif ( in_array( $wordLastVowel, $backVowels ) ) { $word = $word . "تان"; } - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Sonants ) + || in_array( $wordEnding, $Sibilants ) + ) { if ( in_array( $wordLastVowel, $frontVowels ) ) { $word = $word . "دەن"; } elseif ( in_array( $wordLastVowel, $backVowels ) ) { @@ -687,7 +709,10 @@ class LanguageKk_cyrl extends Language { case "comitative": # kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "پەن"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "مەن"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "بەن"; @@ -697,7 +722,10 @@ class LanguageKk_cyrl extends Language { case "possessive comitative": # täweldık + kömektes if ( in_array( $wordEnding, $Consonants ) ) { $word = $word . "پەنەن"; - } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) || in_array( $wordEnding, $Sonants ) ) { + } elseif ( in_array( $wordEnding, $allVowels ) + || in_array( $wordEnding, $Nasals ) + || in_array( $wordEnding, $Sonants ) + ) { $word = $word . "مەنەن"; } elseif ( in_array( $wordEnding, $Sibilants ) ) { $word = $word . "بەنەن"; @@ -709,8 +737,8 @@ class LanguageKk_cyrl extends Language { } /** - * @param $word string - * @param $allVowels array + * @param string $word + * @param array $allVowels * @return array */ function lastLetter( $word, $allVowels ) { @@ -727,7 +755,7 @@ class LanguageKk_cyrl extends Language { $lastLetter[0] = $ar[count( $ar ) - 1]; // Find the last vowel in the word - $lastLetter[1] = NULL; + $lastLetter[1] = null; foreach ( $wordReversed as $xvalue ) { foreach ( $allVowels as $yvalue ) { if ( strcmp( $xvalue, $yvalue ) == 0 ) { @@ -737,7 +765,7 @@ class LanguageKk_cyrl extends Language { continue; } } - if ( $lastLetter[1] !== NULL ) { + if ( $lastLetter[1] !== null ) { break; } else { continue; @@ -750,7 +778,7 @@ class LanguageKk_cyrl extends Language { /** * Avoid grouping whole numbers between 0 to 9999 * - * @param $_ string + * @param string $_ * * @return string */ |