FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Translations » Special singular/plural rule
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Special singular/plural rule [message #160720 is a reply to message #160714] Fri, 16 October 2009 16:30 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
It is already defined in the latest FUDforum 3.0.0 RC2 release. Look at "language.inc" in the thm/default/i18n/arabic directory:

	if ($count == 0) {
		$index = 0;
	} elseif ($count == 1) {
		$index = 1;
	} elseif ($count == 2) {
		$index = 2;
	} elseif ($count % 100 >= 3 && $count % 100 <= 10) {
		$index = 3;
	} elseif ($count % 100 >= 11 && $count % 100 <= 99) {
		$index = 4;
	} else {
		$index = 5;
	}
	return $forms[$index];
[Message index]
 
Read Message
Read Message
Previous Topic: Use localized dates
Next Topic: Russian language - Abracadabra
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 19:42:13 GMT 2024

Total time taken to generate the page: 0.05438 seconds