Bug 172690

Summary: In plural message text only %2 is present
Product: [Unmaintained] kopete Reporter: Freek de Kruijf <f.de.kruijf>
Component: Cryptography PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: charles
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.