diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /languages/classes/LanguageUk.php | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'languages/classes/LanguageUk.php')
-rw-r--r-- | languages/classes/LanguageUk.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/languages/classes/LanguageUk.php b/languages/classes/LanguageUk.php index 08041a92..5215da02 100644 --- a/languages/classes/LanguageUk.php +++ b/languages/classes/LanguageUk.php @@ -32,8 +32,8 @@ class LanguageUk extends Language { * Convert from the nominative form of a noun to some other case * Invoked with {{grammar:case|word}} * - * @param $word string - * @param $case string + * @param string $word + * @param string $case * @return string */ function convertGrammar( $word, $case ) { @@ -51,7 +51,9 @@ class LanguageUk extends Language { if ( !preg_match( "/[a-zA-Z_]/us", $word ) ) { switch ( $case ) { case 'genitive': # родовий відмінок - if ( ( join( '', array_slice( $ar[0], -4 ) ) == 'вікі' ) || ( join( '', array_slice( $ar[0], -4 ) ) == 'Вікі' ) ) { + if ( ( join( '', array_slice( $ar[0], -4 ) ) == 'вікі' ) + || ( join( '', array_slice( $ar[0], -4 ) ) == 'Вікі' ) + ) { } elseif ( join( '', array_slice( $ar[0], -1 ) ) == 'ь' ) { $word = join( '', array_slice( $ar[0], 0, -1 ) ) . 'я'; } elseif ( join( '', array_slice( $ar[0], -2 ) ) == 'ія' ) { @@ -70,7 +72,9 @@ class LanguageUk extends Language { # stub break; case 'accusative': # знахідний відмінок - if ( ( join( '', array_slice( $ar[0], -4 ) ) == 'вікі' ) || ( join( '', array_slice( $ar[0], -4 ) ) == 'Вікі' ) ) { + if ( ( join( '', array_slice( $ar[0], -4 ) ) == 'вікі' ) + || ( join( '', array_slice( $ar[0], -4 ) ) == 'Вікі' ) + ) { } elseif ( join( '', array_slice( $ar[0], -2 ) ) == 'ія' ) { $word = join( '', array_slice( $ar[0], 0, -2 ) ) . 'ію'; } @@ -89,7 +93,7 @@ class LanguageUk extends Language { /** * Ukrainian numeric format is "12 345,67" but "1234,56" * - * @param $_ string + * @param string $_ * * @return string */ |