<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[FluxBB.org Forums - Guests online text + little improvement on user count]]></title>
		<link>http://fluxbb.org/forums/topic/1528/guests-online-text-little-improvement-on-user-count/</link>
		<description><![CDATA[The most recent posts in Guests online text + little improvement on user count.]]></description>
		<lastBuildDate>Sat, 02 Aug 2008 08:40:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12311/#p12311</link>
			<description><![CDATA[yeah ! merci :)]]></description>
			<author><![CDATA[dummy@example.com (vincent)]]></author>
			<pubDate>Sat, 02 Aug 2008 08:40:56 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12311/#p12311</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12308/#p12308</link>
			<description><![CDATA[I've tinkered with this as much as I'm going to. It should now be ok for most langauges and is more extensible.]]></description>
			<author><![CDATA[dummy@example.com (Paul)]]></author>
			<pubDate>Sat, 02 Aug 2008 03:30:44 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12308/#p12308</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12306/#p12306</link>
			<description><![CDATA[Some of webmasters puts function definitions to language files to solve language specific number|gender variations. Probably, it is unique solution.]]></description>
			<author><![CDATA[dummy@example.com (artoodetoo)]]></author>
			<pubDate>Sat, 02 Aug 2008 02:39:48 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12306/#p12306</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12305/#p12305</link>
			<description><![CDATA[just for example in Russian (latin transliteration):

0 gostej or net gostej (plural #1)
1 gost' (single)
2 gostia (plural #2)
3 gostia
4 gostia
5 gostej (plural #1)
...
21 gost' (is it plural or single?)
22 gostia
... etc. last digit is rule

:)]]></description>
			<author><![CDATA[dummy@example.com (artoodetoo)]]></author>
			<pubDate>Sat, 02 Aug 2008 02:33:36 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12305/#p12305</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12298/#p12298</link>
			<description><![CDATA[Yes.
Which in French does:
[list=1]
[*]0 invité (or aucun invité)[/*]
[*]1 invité[/*]
[*]% invité[u][b]s[/b][/u][/*]
[/list]]]></description>
			<author><![CDATA[dummy@example.com (Pandark)]]></author>
			<pubDate>Sat, 02 Aug 2008 01:02:37 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12298/#p12298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12296/#p12296</link>
			<description><![CDATA[That's the best solution for i18n: 3 Strings (as reference: Wordpress does it exactly like that):
[list=1]
[*]0 Guests[/*]
[*]1 Guest[/*]
[*]% Guests[/*]
[/list]]]></description>
			<author><![CDATA[dummy@example.com (damaxxed)]]></author>
			<pubDate>Sat, 02 Aug 2008 00:52:16 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12296/#p12296</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12288/#p12288</link>
			<description><![CDATA[hm, so we said the same thing :) but I'm not sure.

Two forms could claim our needs in french (singular/plural) :

[b]singular : [/b]

in french : 
  - "Il y a 0 invité"
  - "Il y a 1 invité"

in English :
  - "There is 0 guest"
  - "There is 1 guest"

[b]plural :[/b]  

in french : 
  - "Il y a X invités"

in English :
  - "There are X guests"


But actually forums display :

[b]singular : [/b]
  - "There is 1 guest"

[b]plural :[/b]  
  - "There are 0 guests"
  - "There are X guests"

In french 0 IS singular NOT plural. So we have a problem.

So for more flexibility and because wikipedia say some languages use pural for zero and other use singular (like in french) I suggest 3 forms :
none/singular/plural

0 = "Il n'y a aucun invité" or "Il y a 0 invité" / "There is no guest" or "There are 0 guests"
1 = "Il y a un invité" or "Il y a 1 invité" / "There is one guest" or "There is 1 guest"
X = "Il y a X invités" / "There are X invité"]]></description>
			<author><![CDATA[dummy@example.com (vincent)]]></author>
			<pubDate>Fri, 01 Aug 2008 23:17:14 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12288/#p12288</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12286/#p12286</link>
			<description><![CDATA[Yes, that's exactly what I said.]]></description>
			<author><![CDATA[dummy@example.com (Smartys)]]></author>
			<pubDate>Fri, 01 Aug 2008 22:53:33 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12286/#p12286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12285/#p12285</link>
			<description><![CDATA[no, in french we write "Il y a 0 invité" et "Il y a 2 invités" but we prefere wrinting "Il n'y a aucun invité" (for zero guest)]]></description>
			<author><![CDATA[dummy@example.com (vincent)]]></author>
			<pubDate>Fri, 01 Aug 2008 22:51:50 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12285/#p12285</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12284/#p12284</link>
			<description><![CDATA[Zero is plural in many languages
[url]http://en.wikipedia.org/wiki/Plural[/url]
[quote]Languages having only a singular and plural form may still differ in their treatment of zero. For example, in English, German, Dutch, Italian, Spanish and Portuguese, the plural form is used for zero or more than one, and the singular for one thing only. By contrast, in French, the singular form is used for zero.[/quote]]]></description>
			<author><![CDATA[dummy@example.com (Smartys)]]></author>
			<pubDate>Fri, 01 Aug 2008 22:47:07 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12284/#p12284</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12283/#p12283</link>
			<description><![CDATA[yes your right ! I'm not speak English very well and I just past the text from the forum, so I think it is not a feature request but a bug 

because 0 (zero) isn't plural ; isn't it ?

Ce qui est sûr c'est qu'en français "Il y a 0 invités" c'est grammaticalement une erreur également.]]></description>
			<author><![CDATA[dummy@example.com (vincent)]]></author>
			<pubDate>Fri, 01 Aug 2008 22:37:35 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12283/#p12283</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12279/#p12279</link>
			<description><![CDATA[Moved to Feature requests, since this isn't a bug.
You are grammatically incorrect: you don't use a plural verb (are) and a singular object (guest).]]></description>
			<author><![CDATA[dummy@example.com (Smartys)]]></author>
			<pubDate>Fri, 01 Aug 2008 22:13:07 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12279/#p12279</guid>
		</item>
		<item>
			<title><![CDATA[Guests online text + little improvement on user count]]></title>
			<link>http://fluxbb.org/forums/post/12275/#p12275</link>
			<description><![CDATA[Hello,

In lang/index.php we have 'Users plural', 'User single' and 'Users none' that's great, but we should also have a 'Guest none'.

Because I think "There are 0 guests and.." shoud be  "There are 0 guest and..." or "There are no guest and..."

Perhaps by replacing this :

[code]<?php (($num_guests != 1) ? printf($lang_index['Guests plural'], forum_number_format($num_guests)) : printf($lang_index['Guest single'], $num_guests)) ?>[/code]

by something like this :

[code]<?php 
    if ($num_guests < 1)
        printf($lang_index['Guest none'], $num_guests);
    elseif ($num_guests == 1)
        printf($lang_index['Guest single'], $num_guests);
    else
        printf($lang_index['Guests plural'], forum_number_format($num_guests));
    ?>[/code]

By the way, I think this piece of code :

[code]<?php ((count($users) > 1) ? printf($lang_index['Users plural'], forum_number_format(count($users))) : printf(((count($users) == 0) ? $lang_index['Users none'] : $lang_index['User single']), count($users))) ?>[/code]

Should be replace by a similare piece than the one for pluralize the guest count. A variable could be added just before 'in_users_online_pre_online_info_output' hook.

[code]
$num_users = count($users);

[...]

<?php 
    if ($num_users < 1)
        printf($lang_index['Users none'], $num_users);
    elseif ($num_users == 1)
        printf($lang_index['User single'], $num_users);
    else
        printf($lang_index['Users plural'], forum_number_format($num_users));
    ?>[/code]

So like this we could have just one count($users) and the possibilty to use this number in previous hook, plus the possibility to use textual for "none" and "one" like "... and one registered user online"]]></description>
			<author><![CDATA[dummy@example.com (vincent)]]></author>
			<pubDate>Fri, 01 Aug 2008 21:56:39 +0000</pubDate>
			<guid>http://fluxbb.org/forums/post/12275/#p12275</guid>
		</item>
	</channel>
</rss>
