Last modified: 2005-10-11 21:53:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5414, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3414 - Add plural forms support to Belarusian
Add plural forms support to Belarusian
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.6.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-10 01:50 UTC by Eugene Zelenko
Modified: 2005-10-11 21:53 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eugene Zelenko 2005-09-10 01:50:41 UTC
Please add plural form support for Belarusian language (LanguageBe.php)? Code
below is copied from LanguageRu.php (plural forms are same for Russian and
Belarusian).

I don't sure that this all what I need to add. So please verify and add missing
parts.

function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
	if ($count > 10 && floor(($count % 100) / 10) == 1) {
		return $wordform3;
	}
	else {
       		switch ($count % 10) {
               		case 1: return $wordform1;
               		case 2: return $wordform2;
               		case 3: return $wordform2;
               		case 4: return $wordform2;
			default: return $wordform3;
       		}
	}
}

Test case:

for {{plural:X|артыкул|артыкула|артыкулаў}}

1 артыкул
2 – 4 артыкула
5 – 20 артыкулаў
21 артыкул
22 – 24 артыкула
25 – 30 артыкулаў

and so on...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links