Removing %n in plural i18n calls

David Jarvie lists at astrojar.org.uk
Mon Feb 12 00:48:55 GMT 2007


On Sunday 11 February 2007 14:48:24 Chusslove Illich wrote:
> There was also a discussion on kde-i18n-doc some months ago, you can take a
> look for reference:
> http://lists.kde.org/?l=kde-i18n-doc&m=115197256218486&w=2 (note that
> there I proposed %1 to always determine plural, whether now it's first
> integer-valued placeholder).
>
[snip]
>
> Taken together, if you now wonder whether this is still legal:
>
> i18np("One file in folder %2", "%1 files in folder %2", nfiles, folder)
>
> yes it is, because the placeholder corresponding to plural argument is
> excepted from sequence rule, it is allowed to be missing in either
> singular or plural.

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?

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/linux/kalarm.html




More information about the kde-core-devel mailing list