--===============1574453792== Content-Type: multipart/signed; boundary="nextPart1320677.FHDr3lCdMs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1320677.FHDr3lCdMs Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > [: David Jarvie :] > A bug has been raised on KAlarm ( > https://bugs.kde.org/show_bug.cgi?id=3D245575) about bad i18n strings. Th= ey > are supposed to cope with two separate plural forms, but evidently don't > work properly. [...] Is there a good way of coding this? I'd say there is no good way, but a tolerable one, and that is just what the bug reporter suggested. This: QString msg =3D i18ncp("@info", "in 1 hour %2 minutes' time", "in %1 hours %2 minutes' time", mins/60, mins%60); would be replaced with something like: QString hourfmt =3D i18ncp("@item:intext inserted into 'in ... time' belo= w", "1 hour", "%1 hours", mins/60); QString minfmt =3D i18ncp("@item:intext inserted into 'in ... time' below= ", "1 minute's", "%1 minutes'", mins/60); QString msg =3D i18nc("@info %1 and %2 are the two previous messages", "in %1 %2 time", hourfmt, minfmt); =2D-=20 Chusslove Illich (=D0=A7=D0=B0=D1=81=D0=BB=D0=B0=D0=B2 =D0=98=D0=BB=D0=B8= =D1=9B) --nextPart1320677.FHDr3lCdMs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkxJ/rMACgkQMSGXgigGr3FYegCcCac72DIIIvqc6cRmz8SU60jA VN4Ani82RsDl8S88hk99guJ5eiuo7RFl =bu1v -----END PGP SIGNATURE----- --nextPart1320677.FHDr3lCdMs-- --===============1574453792== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1574453792==--