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:
@@ -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);
|
||||
|
||||
@@ -45,4 +45,9 @@
|
||||
<qresource prefix="/movies">
|
||||
<file alias="update_spinner">res/movies/update_spinner.mng</file>
|
||||
</qresource>
|
||||
<qresource prefix="/translations">
|
||||
<file alias="de_DE">locale/bitcoin_de.qm</file>
|
||||
<file alias="nl_NL">locale/bitcoin_nl.qm</file>
|
||||
<file alias="ru_RU">locale/bitcoin_ru.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user