Bug 172690 - In plural message text only %2 is present
Summary: In plural message text only %2 is present
Status: RESOLVED NOT A BUG
Alias: None
Product: kopete
Classification: Unmaintained
Component: Cryptography Plugin (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 01:54 UTC by Freek de Kruijf
Modified: 2008-11-17 22:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2008-10-13 01:54:37 UTC
Version:            (using Devel)
Installed from:    Compiled sources

In the following message (#40 in trunk kopete-cryptography.po:

You need to select a public key for %2 to send encrypted messages to them.

which is part of a plural message only %2 is present.

I wonder whether this should be %1 or a %1 is missing.

Besides I would suggest the following message(s):

You need to select a public key for %2 to send encrypted messages to that contact

and 

You need to select a public key for the following meta-contacts to send encrypted messages to these contacts:\n
%2
Comment 1 Charles Connell 2008-11-17 22:43:19 UTC
This is not really a bug. I have taken the reworking suggestions you have made, but left the %2 usage. Here's why:

The call to i18ncp use its fourth argument to determine if the singular or plural message should be used. This argument would appear in the string in place of the %1 placeholder. However, I do not want this number to appear in the string. So, I provide the i18ncp call with a fifth argument, containing the string I want my placeholder replaced with. This string must be referenced by %2, since it is the fifth argument, and that is how i18ncp does its numbering.