qt: use QChar(0x03BC) for mu symbol

Embedding UTF-8 in source code is not portable.

Also make unit descriptions translatable.
This commit is contained in:
Wladimir J. van der Laan 2014-03-22 08:26:50 +01:00 committed by J Ross Nicoll
parent 0e852c908c
commit fbed698090

View file

@ -42,7 +42,7 @@ QString BitcoinUnits::name(int unit)
{
case BTC: return QString("DOGE");
case mBTC: return QString("mDOGE");
case uBTC: return QString::fromUtf8("μDOGE");
case uBTC: return QChar(0x03BC) + QString("DOGE");
default: return QString("???");
}
}
@ -51,9 +51,9 @@ QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case BTC: return QString("Dogecoins");
case mBTC: return QString("Milli-Dogecoins (1 / 1" THIN_SP_UTF8 "000)");
case uBTC: return QString("Micro-Dogecoins (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case BTC: return tr("Dogecoins");
case mBTC: return tr("Milli-Dogecoins (1 / 1,000)");
case uBTC: return tr("Micro-Dogecoins (1 / 1,000,000)");
default: return QString("???");
}
}