diff options
Diffstat (limited to 'languages/classes/LanguageLv.php')
-rw-r--r-- | languages/classes/LanguageLv.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/languages/classes/LanguageLv.php b/languages/classes/LanguageLv.php index 8a46bb9d..a3f076e8 100644 --- a/languages/classes/LanguageLv.php +++ b/languages/classes/LanguageLv.php @@ -21,8 +21,11 @@ class LanguageLv extends Language { * @param string $wordform3 (not used) * @return string */ - function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5 ) { - return ( ( $count % 10 == 1 ) && ( $count % 100 != 11 ) ) ? $wordform1 : $wordform2; + function convertPlural( $count, $forms ) { + if ( !count($forms) ) { return ''; } + $forms = $this->preConvertPlural( $forms, 2 ); + + return ( ( $count % 10 == 1 ) && ( $count % 100 != 11 ) ) ? $forms[0] : $forms[1]; } # Convert from the nominative form of a noun to some other case |