aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorMisbakh-Soloviev Vadim A <mva@mva.name>2011-08-28 14:12:26 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-28 14:14:29 +0200
commit3f0816e3d926e0ea78ac7b6cd43efe62355885c8 (patch)
treed16baa1f94a7a88cd0d5d1675816dbf6797162cd /src/qt/bitcoin.cpp
parentae8adeb90abb334b8e5712124e62461eca77c12f (diff)
add russian translation and add unicode compatibility (merges pull request #20)
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 9b4d88d91f..6f4815758f 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -13,6 +13,7 @@
#include <QApplication>
#include <QMessageBox>
#include <QThread>
+#include <QTextCodec>
#include <QLocale>
#include <QTranslator>
#include <QSplashScreen>
@@ -111,6 +112,9 @@ std::string _(const char* psz)
int main(int argc, char *argv[])
{
+ QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
+ QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
+
Q_INIT_RESOURCE(bitcoin);
QApplication app(argc, argv);
@@ -148,7 +152,7 @@ int main(int argc, char *argv[])
if (QtWin::isCompositionEnabled())
{
-#ifdef Q_WS_WIN32
+#ifdef Q_OS_WIN
// Windows-specific customization
window.setAttribute(Qt::WA_TranslucentBackground);
window.setAttribute(Qt::WA_NoSystemBackground, false);