translation handling improvements

- automatically build binary translation files in qmake/make
- roll translations into resource file and executable, to simply installation
This commit is contained in:
Wladimir J. van der Laan
2011-09-27 20:47:51 +02:00
parent d28ed9c98e
commit 5902040874
3 changed files with 21 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
// Load language file for system locale
QString locale = QLocale::system().name();
QTranslator translator;
translator.load("bitcoin_"+locale);
translator.load(":/translations/"+locale);
app.installTranslator(&translator);
QSplashScreen splash(QPixmap(":/images/splash"), 0);