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 += \
|
TRANSLATIONS += \
|
||||||
res/gta5sync_de.ts \
|
res/gta5sync_de.ts \
|
||||||
lang/gta5sync_fr.ts \
|
res/gta5sync_fr.ts \
|
||||||
lang/gta5sync_ru.ts
|
lang/gta5sync_ru.ts
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
|
@ -108,15 +108,11 @@ RESOURCES += \
|
||||||
DISTFILES += res/app.rc \
|
DISTFILES += res/app.rc \
|
||||||
res/gta5sync.desktop \
|
res/gta5sync.desktop \
|
||||||
res/gta5sync_de.ts \
|
res/gta5sync_de.ts \
|
||||||
lang/gta5sync_fr.qm \
|
res/gta5sync_fr.ts \
|
||||||
lang/gta5sync_ru.qm \
|
|
||||||
lang/qtbase_fr.qm \
|
|
||||||
lang/qtbase_ru.qm \
|
lang/qtbase_ru.qm \
|
||||||
lang/README.txt \
|
|
||||||
lang/gta5sync_fr.ts \
|
|
||||||
lang/gta5sync_ru.ts \
|
lang/gta5sync_ru.ts \
|
||||||
lang/qt_fr.qm \
|
lang/qt_ru.qm \
|
||||||
lang/qt_ru.qm
|
lang/README.txt
|
||||||
|
|
||||||
INCLUDEPATH += ./uimod
|
INCLUDEPATH += ./uimod
|
||||||
|
|
||||||
|
|
2
main.cpp
2
main.cpp
|
@ -227,6 +227,7 @@ int main(int argc, char *argv[])
|
||||||
// End external translate loading
|
// End external translate loading
|
||||||
// Start internal translate loading
|
// Start internal translate loading
|
||||||
QTranslator appTranslator;
|
QTranslator appTranslator;
|
||||||
|
trsf = false;
|
||||||
if (language == "System" || language.trimmed() == "")
|
if (language == "System" || language.trimmed() == "")
|
||||||
{
|
{
|
||||||
QString languageName = QLocale::system().name();
|
QString languageName = QLocale::system().name();
|
||||||
|
@ -270,6 +271,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
appTranslator.load(":/tr/gta5sync_" + langList.at(0) + ".qm");
|
appTranslator.load(":/tr/gta5sync_" + langList.at(0) + ".qm");
|
||||||
QLocale::setDefault(QLocale(langList.at(0)));
|
QLocale::setDefault(QLocale(langList.at(0)));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
<file>gta5sync_de.qm</file>
|
<file>gta5sync_de.qm</file>
|
||||||
<file>qt_de.qm</file>
|
<file>qt_de.qm</file>
|
||||||
<file>qtbase_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>
|
||||||
<qresource prefix="/img">
|
<qresource prefix="/img">
|
||||||
<file>savegame.png</file>
|
<file>savegame.png</file>
|
||||||
|
|
Loading…
Reference in a new issue