Integrate Japanese and Vietnamese translations

This commit is contained in:
Cameron Gutman 2021-05-13 00:24:00 -05:00
parent c55d184195
commit 54bd427f26
5 changed files with 22 additions and 2 deletions

View file

@ -332,7 +332,9 @@ TRANSLATIONS += \
languages/qml_fr.ts \
languages/qml_nb_NO.ts \
languages/qml_ru.ts \
languages/qml_es.ts
languages/qml_es.ts \
languages/qml_ja.ts \
languages/qml_vi.ts
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

View file

@ -794,6 +794,14 @@ Flickable {
text: "Español" // Spanish
val: StreamingPreferences.LANG_ES
}*/
ListElement {
text: "日本語" // Japanese
val: StreamingPreferences.LANG_JA
}
ListElement {
text: "Tiếng Việt" // Vietnamese
val: StreamingPreferences.LANG_VI
}
}
// ::onActivated must be used, as it only listens for when the index is changed by a human
onActivated : {

View file

@ -29,6 +29,10 @@
<file>languages/qml_ru.qm</file>
<file>languages/qml_es.ts</file>
<file>languages/qml_es.qm</file>
<file>languages/qml_ja.ts</file>
<file>languages/qml_ja.qm</file>
<file>languages/qml_vi.ts</file>
<file>languages/qml_vi.qm</file>
</qresource>
<qresource prefix="/data">
<file alias="gamecontrollerdb.txt">SDL_GameControllerDB/gamecontrollerdb.txt</file>

View file

@ -195,6 +195,10 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua
return "ru";
case LANG_ES:
return "es";
case LANG_JA:
return "ja";
case LANG_VI:
return "vi";
case LANG_AUTO:
default:
return QLocale::system().name();

View file

@ -72,7 +72,9 @@ public:
LANG_DE,
LANG_NB_NO,
LANG_RU,
LANG_ES
LANG_ES,
LANG_JA,
LANG_VI
};
Q_ENUM(Language);