[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: [kde-workspace/KDE/4.6] powerdevil/daemon: fix plural handling
From: Andrew Coles <andrew.i.coles () googlemail ! com>
Date: 2011-01-31 21:41:09
Message-ID: AANLkTimTVoas40k1zO1_G54vaeURHB0MSwTUAz1VOqzA () mail ! gmail ! com
[Download RAW message or body]
On Mon, Jan 31, 2011 at 9:03 PM, Frederik Schwarzer <schwarzerf@gmail.com>wrote:
> + if (m_loadedBatteriesUdi.size() == 1) {
> <snip>
+ } else {
> + emitNotification("brokenbattery",
> + i18n("One of your batteries (ID %2) has a
> capacity of %1%. This means it is broken "
> + "and needs a replacement. Please
> contact your hardware vendor for more details.",
> + i.value(), i.key()),
> + "dialog-warning");
> + }
> }
>
Is it okay to use 'batteries' as a fixed plural form for battery in that
second message there, or should it be something like:
i18ncp("The case where %1 == 1 is handled separately to this",
"Your battery (ID %3) has a capacity of %2% This means it is broken "
"and needs a replacement. Please contact your hardware vendor for more
details.",
"One of your batteries (ID %3) has a capacity of %2%. This means it is
broken "
"and needs a replacement. Please contact your hardware vendor for more
details.",
m_loadedBatteriesUdi.size(), i.value(), i.key())
...and similarly lower down? Can any speakers of languages with multiple
plural forms comment on this? (And is this use of i18np where %1 is omitted
in both cases even legal?)
Thanks,
Andrew
[Attachment #3 (text/html)]
<br><div class="gmail_quote">On Mon, Jan 31, 2011 at 9:03 PM, Frederik Schwarzer \
<span dir="ltr"><<a \
href="mailto:schwarzerf@gmail.com">schwarzerf@gmail.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> + if \
(m_loadedBatteriesUdi.size() == 1) {<br> <snip> </blockquote><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;">+ } else {<br> + \
emitNotification("brokenbattery",<br> + \
i18n("One of your batteries (ID %2) has a capacity of %1%. This means it is \
broken "<br> + "and needs a \
replacement. Please contact your hardware vendor for more details.",<br> + \
i.value(), i.key()),<br> + \
"dialog-warning");<br> + }<br>
}<br></blockquote><div><br>Is it okay to use 'batteries' as a fixed \
plural form for battery in that second message there, or should it be something \
like:<br><br>i18ncp("The case where %1 == 1 is handled separately to \
this",<br> "Your battery (ID %3) has a capacity of %2% This means it is \
broken "<br> "and needs a replacement. Please contact your hardware \
vendor for more details.",<br> "One of your batteries (ID %3) has a \
capacity of %2%. This means it is broken "<br> "and needs a replacement. \
Please contact your hardware vendor for more details.",<br> \
m_loadedBatteriesUdi.size(), i.value(), i.key())<br><br>...and similarly lower down? \
Can any speakers of languages with multiple plural forms comment on this? (And is \
this use of i18np where %1 is omitted in both cases even legal?)<br> \
<br>Thanks,<br><br>Andrew<br></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic