experiment with internationalization (nl), unbreak build (externui.h->qtui.h)

pull/2/merge
Wladimir J. van der Laan 14 years ago
parent 47c6215c22
commit daaee738fc

@ -6,11 +6,13 @@
#include "util.h"
#include "init.h"
#include "main.h"
#include "externui.h"
#include "qtui.h"
#include <QApplication>
#include <QMessageBox>
#include <QThread>
#include <QLocale>
#include <QTranslator>
// Need a global reference for the notifications to find the GUI
BitcoinGUI *guiref;
@ -98,6 +100,13 @@ int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(bitcoin);
QApplication app(argc, argv);
// Load language file for system locale
QString locale = QLocale::system().name();
QTranslator translator;
translator.load("bitcoin_"+locale);
app.installTranslator(&translator);
app.setQuitOnLastWindowClosed(false);
try

@ -57,7 +57,7 @@
<item>
<widget class="QLabel" name="versionLabel">
<property name="text">
<string>0.3.666-beta</string>
<string notr="true">0.3.666-beta</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save