summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageLt.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
commit9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch)
tree46d1a0dee7febef5c2d57a9f7b972be16a163b3d /languages/classes/LanguageLt.php
parent78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff)
update to MediaWiki 1.17.0
Diffstat (limited to 'languages/classes/LanguageLt.php')
-rw-r--r--languages/classes/LanguageLt.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/classes/LanguageLt.php b/languages/classes/LanguageLt.php
index 87519d98..4291e797 100644
--- a/languages/classes/LanguageLt.php
+++ b/languages/classes/LanguageLt.php
@@ -11,15 +11,15 @@ class LanguageLt extends Language {
3 - penkiolika (15) lapų
*/
function convertPlural( $count, $forms ) {
- if ( !count($forms) ) { return ''; }
+ if ( !count( $forms ) ) { return ''; }
- //if no number with word, then use $form[0] for singular and $form[1] for plural or zero
- if( count($forms) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
+ // if no number with word, then use $form[0] for singular and $form[1] for plural or zero
+ if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
$forms = $this->preConvertPlural( $forms, 3 );
- if ($count%10==1 && $count%100!=11) return $forms[0];
- if ($count%10>=2 && ($count%100<10 || $count%100>=20)) return $forms[1];
+ if ( $count % 10 == 1 && $count % 100 != 11 ) return $forms[0];
+ if ( $count % 10 >= 2 && ( $count % 100 < 10 || $count % 100 >= 20 ) ) return $forms[1];
return $forms[2];
}
}