[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    i18n strings containing two separate plural forms
From:       David Jarvie <djarvie () kde ! org>
Date:       2010-07-23 19:55:04
Message-ID: 201007232055.39583.djarvie () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


A bug has been raised on KAlarm (https://bugs.kde.org/show_bug.cgi?id=245575) about \
bad i18n strings. They are supposed to cope with two separate plural forms, but \
evidently don't work properly. The idea is to provide the string

"in %1 hours %2 minutes' time"

with each of the hours and minutes values providing plural forms. The actual strings \
currently are:

i18ncp("@info", "in 1 hour 1 minute's time", "in %1 hours 1 minute's time", mins/60);
i18ncp("@info", "in 1 hour %2 minutes' time", "in %1 hours %2 minutes' time", \
mins/60, mins%60);

Is there a good way of coding this?

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic