[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: branches/KDE/3.5/kdeedu/kalzium/src
From: Thiago Macieira <thiago () kde ! org>
Date: 2005-09-11 17:18:11
Message-ID: 200509111418.21244.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (text/plain)]
Pino Toscano wrote:
>- v = i18n( "%1 is the temperature
> in Celsius", "%1 %2C" ).arg( val ).arg( "\xB0" );
> + v = i18n( "%1 is the
> temperature in Celsius", "%1 %2C" ).arg( newvalue ).arg( "\xB0" );
I don't think writing "\xB0" is correct, since there is no
QString::arg(const char*): your string will be converted using the
codecForCStrings and that may turn out differently than what you intend.
So, I recommend instead you use the QChar overload:
.arg( QChar(0xB0) )
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic