made french translation official, fixed translation loader at multiple
languages choices
This commit is contained in:
parent
65a7e7de49
commit
d60c7849bd
7 changed files with 9 additions and 8 deletions
12
gta5sync.pro
12
gta5sync.pro
|
@ -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
|
||||
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -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)));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue