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

Home » FUDforum Development » FUDforum 3.0+ » Suggestion: code to output singular/plural when needed
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Suggestion: code to output singular/plural when needed [message #1688] Sat, 20 April 2002 23:57 Go to previous message
basse is currently offline  basse   Finland
Messages: 164
Registered: March 2002
Location: Ã…bo, Finland
Karma:
Senior Member
In English, plural forms are quite elegant. You just put an s at the end of the word and voilá. In other languages, the case is not that simple.

For example: the row that show how many members and how many guests are browsing the forum looks like this in Swedish.
Vi har 1 medlem(mar), 0 osynlig(a) medlem(mar) och 0 gäst(er) på besök just nu.


This is not very elegant. Therefore I suggest that you write code that knows when to output the singular form and when to print the plural.

In that way, the example line would look like this:
Vi har 1 medlem, 0 osynliga medlemmar och 0 gäster på besök just nu.


Another time it may look like this:
Vi har 3 medlemmar, 1 osynlig medlem och 4 gäster på besök just nu.


What do you think?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug report: automatic setting of locale fails
Next Topic: User/Group Management
Goto Forum:
  

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

Current Time: Fri Oct 18 07:12:05 GMT 2024

Total time taken to generate the page: 0.04674 seconds