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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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