made french translation official, fixed translation loader at multiple

languages choices
This commit is contained in:
Rafael 2016-11-02 15:39:17 +01:00
parent 65a7e7de49
commit d60c7849bd
7 changed files with 9 additions and 8 deletions

View file

@ -99,7 +99,7 @@ FORMS += \
TRANSLATIONS += \
res/gta5sync_de.ts \
lang/gta5sync_fr.ts \
res/gta5sync_fr.ts \
lang/gta5sync_ru.ts
RESOURCES += \
@ -108,15 +108,11 @@ RESOURCES += \
DISTFILES += res/app.rc \
res/gta5sync.desktop \
res/gta5sync_de.ts \
lang/gta5sync_fr.qm \
lang/gta5sync_ru.qm \
lang/qtbase_fr.qm \
res/gta5sync_fr.ts \
lang/qtbase_ru.qm \
lang/README.txt \
lang/gta5sync_fr.ts \
lang/gta5sync_ru.ts \
lang/qt_fr.qm \
lang/qt_ru.qm
lang/qt_ru.qm \
lang/README.txt
INCLUDEPATH += ./uimod

View file

@ -227,6 +227,7 @@ int main(int argc, char *argv[])
// End external translate loading
// Start internal translate loading
QTranslator appTranslator;
trsf = false;
if (language == "System" || language.trimmed() == "")
{
QString languageName = QLocale::system().name();
@ -270,6 +271,7 @@ int main(int argc, char *argv[])
{
appTranslator.load(":/tr/gta5sync_" + langList.at(0) + ".qm");
QLocale::setDefault(QLocale(langList.at(0)));
}
}
}

View file

@ -3,6 +3,9 @@
<file>gta5sync_de.qm</file>
<file>qt_de.qm</file>
<file>qtbase_de.qm</file>
<file>gta5sync_fr.qm</file>
<file>qt_fr.qm</file>
<file>qtbase_fr.qm</file>
</qresource>
<qresource prefix="/img">
<file>savegame.png</file>