r17521 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17520‎ | r17521 | r17522 >
Date:12:48, 10 November 2006
Author:rotem
Status:old
Tags:
Comment:
(bug 7835) Update for Upper Sorbian language (hsb)
Modified paths:
  • /trunk/phase3/languages/classes/LanguageHsb.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageHsb.php
@@ -100,4 +100,18 @@
101101
102102 return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
103103 }
 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+ }
104118 }