--nextPart11930432.rNFYdF5Kfa Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > [: Ingo Kl=C3=B6cker :] > I wonder whether we really need such a complicated solution for multiple > arguments. I'm a bit concerned about the performance penalty that's=20 > caused by this complicated construction. Performance is really not an issue here, as we're talking about GUI stuff. Anyway, if you'd really want to know, this particular thing (simple=20 message, three placeholders, all QString arguments: the worst case) slow=20 current code down about twice, but still delivering over 200,000 messages=20 per second on my 1.67 GHz. And if I make all tree arguments ints, than it=20 is only factor 1.3 slower. In general, any further complication (like=20 plurals, context, future enhancements) will only narrow this gap of few=20 indirections. > Therefore at least for me, in the multiple argument case, something like > i18n( const char *text, const QString & a1, const QString & a2, const=20 > QString & a3 ) > would suffice because currently for using QString::arg( a1, a2, a3 ) we > already need to convert numbers to QString ourselves. But if you don't have to, why not allow for that (performance not being the= =20 issue)? And I'm not sure that people wouldn't object having to use that=20 QString::number() whenever numerical argument comes, even if no special=20 formating is needed. > [...] the additional idea with qarg() [is] superfluous because the > developer would use > i18n("Directory %1: %2 MB", dir, QString::number(size, 5)). I was just aiming at providing already common arg() behaviour, I don't=20 insist since it is just for rare formating needs. Can be added later if=20 needed, as it is independant of the base system. =2D-=20 Chusslove Illich (=D0=A7=D0=B0=D1=81=D0=BB=D0=B0=D0=B2 =D0=98=D0=BB=D0=B8= =D1=9B) --nextPart11930432.rNFYdF5Kfa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDZQCGMSGXgigGr3ERAnvnAKCbB/yZSQMEpH6LQOXQKNIh/HfreACgqXZD ngj/WertZyeL6B41T37dpKg= =Xwio -----END PGP SIGNATURE----- --nextPart11930432.rNFYdF5Kfa--