Index: trunk/phase3/languages/classes/LanguageBat_smg.php |
— | — | @@ -1,30 +0,0 @@ |
2 | | -<?php |
3 | | -/** Samogitian (Žemaitėška) |
4 | | - * |
5 | | - * @ingroup Language |
6 | | - * |
7 | | - * @author Niklas Laxström |
8 | | - */ |
9 | | -class LanguageBat_smg extends Language { |
10 | | - |
11 | | - /** |
12 | | - * @param $count int |
13 | | - * @param $forms array |
14 | | - * @return string |
15 | | - */ |
16 | | - function convertPlural( $count, $forms ) { |
17 | | - if ( !count( $forms ) ) { return ''; } |
18 | | - $forms = $this->preConvertPlural( $forms, 4 ); |
19 | | - |
20 | | - $count = abs( $count ); |
21 | | - if ( $count === 0 || ( $count % 100 === 0 || ( $count % 100 >= 10 && $count % 100 < 20 ) ) ) { |
22 | | - return $forms[2]; |
23 | | - } elseif ( $count % 10 === 1 ) { |
24 | | - return $forms[0]; |
25 | | - } elseif ( $count % 10 === 2 ) { |
26 | | - return $forms[1]; |
27 | | - } else { |
28 | | - return $forms[3]; |
29 | | - } |
30 | | - } |
31 | | -} |
Index: trunk/phase3/languages/classes/LanguageSgs.php |
— | — | @@ -0,0 +1,30 @@ |
| 2 | +<?php |
| 3 | +/** Samogitian (Žemaitėška) |
| 4 | + * |
| 5 | + * @ingroup Language |
| 6 | + * |
| 7 | + * @author Niklas Laxström |
| 8 | + */ |
| 9 | +class LanguageSgs extends Language { |
| 10 | + |
| 11 | + /** |
| 12 | + * @param $count int |
| 13 | + * @param $forms array |
| 14 | + * @return string |
| 15 | + */ |
| 16 | + function convertPlural( $count, $forms ) { |
| 17 | + if ( !count( $forms ) ) { return ''; } |
| 18 | + $forms = $this->preConvertPlural( $forms, 4 ); |
| 19 | + |
| 20 | + $count = abs( $count ); |
| 21 | + if ( $count === 0 || ( $count % 100 === 0 || ( $count % 100 >= 10 && $count % 100 < 20 ) ) ) { |
| 22 | + return $forms[2]; |
| 23 | + } elseif ( $count % 10 === 1 ) { |
| 24 | + return $forms[0]; |
| 25 | + } elseif ( $count % 10 === 2 ) { |
| 26 | + return $forms[1]; |
| 27 | + } else { |
| 28 | + return $forms[3]; |
| 29 | + } |
| 30 | + } |
| 31 | +} |
Property changes on: trunk/phase3/languages/classes/LanguageSgs.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 32 | + native |