diff options
Diffstat (limited to 'languages/classes/LanguageBat_smg.php')
-rw-r--r-- | languages/classes/LanguageBat_smg.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/languages/classes/LanguageBat_smg.php b/languages/classes/LanguageBat_smg.php new file mode 100644 index 00000000..fc830cf5 --- /dev/null +++ b/languages/classes/LanguageBat_smg.php @@ -0,0 +1,26 @@ +<?php +/** Samogitian (Žemaitėška) + * + * @addtogroup Language + * + * @author Niklas Laxström + */ +class LanguageBat_smg extends Language { + + function convertPlural( $count, $forms ) { + if ( !count($forms) ) { return ''; } + $forms = $this->preConvertPlural( $forms, 4 ); + + $count = abs( $count ); + if ( $count === 0 || ($count%100 === 0 || ($count%100 >= 10 && $count%100 < 20)) ) { + return $forms[2]; + } elseif ( $count%10 === 1 ) { + return $forms[0]; + } elseif ( $count%10 === 2 ) { + return $forms[1]; + } else { + return $forms[3]; + } + } + +}
\ No newline at end of file |