Removing %n in plural i18n calls

Chusslove Illich caslav.ilic at gmx.net
Mon Feb 12 10:05:33 GMT 2007


> [: David Jarvie :]
> If %1 is always the plural indicator, then
>
> i18np("Folder %2 has one file", "Folder %2 has %1 files", nfiles,folder)
>
> would need to be allowed. It is alright to have the placeholders out of 
> sequence in such cases?

Yes, this is ok too. It is only illegal to skip a placeholder number 
(unless plural number), but they can be arranged in any way.

Also, it doesn't have to be %1 which is plural number, but the first 
argument which is an integer of some sort will be used as such. So it 
could as well be:

i18np("Folder %1 has one file", "Folder %1 has %2 files", folder, nfiles)

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070212/4b619351/attachment.sig>


More information about the kde-core-devel mailing list