Bug 317704 (MONO74617) - ngettext not used for plurals
Summary: ngettext not used for plurals
Status: RESOLVED WONTFIX
Alias: MONO74617
Product: MonoDevelop
Classification: Mono
Component: general (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: MD Bugs
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-04-15 16:36 UTC by Martin W. Hansen
Modified: 2007-09-15 21:23 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:13:29 UTC


---- Reported by mwh@sysrq.dk 2005-04-15 09:36:55 MST ----

msgid "C_omment Line(s)"

Should be:

msgid[0] "C_omment Line"
msgid[1] "C_omment Lines"

and 

msgid "_Uncomment Line(s)"

should be 

msgid[0] "_Uncomment Line"
msgid[1] "_Uncomment Line(s)"

See http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals
for more information on this issue.



---- Additional Comments From jluke@cfl.rr.com 2005-06-15 19:28:25 MST ----

So from reading that it looks like we can just use:
GettextCatalog.GetPluralString (string singular, string plural, int n);
in these situations, correct?

But your cited example is from xml and I don't see an easy way to
change it there.



---- Additional Comments From dsegan@gmx.net 2005-06-16 04:45:03 MST ----

This is actually not where we need plural forms: words are affected
only by the number, and there's no number here.

What we want here is to get two separate strings: one for one line,
other for more lines.  Or is there a language where this is not
sufficient?




---- Additional Comments From tberman@off.net 2005-06-16 22:53:58 MST ----

I thought that was the whole point of GetPluralString. It allowed
languages with strange pluralization rules to determine if a word
should be pluralized or not. The number is implicit it seems.



---- Additional Comments From yakeen@sannyas-on.net 2005-12-29 05:38:07 MST ----

How does ngettext behave when you have more than one plural form? Is
it supported?

eg. in czech we have for line(s)
1    radek
2..4 radky
5... radku




---- Additional Comments From jacobilsoe@gmail.com 2006-02-04 03:38:01 MST ----

So, should we change the xml format to make it support plurals,
rephrase the text or keep it as it is?



---- Additional Comments From lluis@ximian.com 2007-01-24 07:54:51 MST ----

Let's keep it as it is.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Ubuntu Hoary</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".