Index: trunk/phase3/languages/classes/LanguageHsb.php |
— | — | @@ -100,4 +100,18 @@ |
101 | 101 | |
102 | 102 | return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values |
103 | 103 | } |
| 104 | + |
| 105 | + function convertPlural( $count, $singular, $dual, $plural, $pluralgen ) { |
| 106 | + switch ( abs( $count ) % 100 ) { |
| 107 | + case 1: |
| 108 | + return $singular; |
| 109 | + case 2: |
| 110 | + return $dual; |
| 111 | + case 3: |
| 112 | + case 4: |
| 113 | + return $plural; |
| 114 | + default: |
| 115 | + return $pluralgen; |
| 116 | + } |
| 117 | + } |
104 | 118 | } |