Add Norwegian Bokmål to the build

This commit is contained in:
Cameron Gutman
2021-03-24 20:40:22 -05:00
parent 6b041e7657
commit 48dde310ae
5 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -327,7 +327,8 @@ RESOURCES += \
TRANSLATIONS += \ TRANSLATIONS += \
languages/qml_zh_cn.ts \ languages/qml_zh_cn.ts \
languages/qml_de.ts \ languages/qml_de.ts \
languages/qml_fr.ts languages/qml_fr.ts \
languages/qml_nb_NO.ts
# Additional import path used to resolve QML modules in Qt Creator's code model # Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH = QML_IMPORT_PATH =
+4
View File
@@ -781,6 +781,10 @@ Flickable {
text: "简体中文" //Simplified Chinese text: "简体中文" //Simplified Chinese
val: StreamingPreferences.LANG_ZH_CN val: StreamingPreferences.LANG_ZH_CN
} }
ListElement {
text: "Norwegian Bokmål"
val: StreamingPreferences.LANG_NB_NO
}
} }
// ::onActivated must be used, as it only listens for when the index is changed by a human // ::onActivated must be used, as it only listens for when the index is changed by a human
onActivated : { onActivated : {
+2
View File
@@ -23,6 +23,8 @@
<file>languages/qml_fr.qm</file> <file>languages/qml_fr.qm</file>
<file>languages/qml_zh_cn.ts</file> <file>languages/qml_zh_cn.ts</file>
<file>languages/qml_zh_cn.qm</file> <file>languages/qml_zh_cn.qm</file>
<file>languages/qml_nb_NO.ts</file>
<file>languages/qml_nb_NO.qm</file>
</qresource> </qresource>
<qresource prefix="/data"> <qresource prefix="/data">
<file alias="gamecontrollerdb.txt">SDL_GameControllerDB/gamecontrollerdb.txt</file> <file alias="gamecontrollerdb.txt">SDL_GameControllerDB/gamecontrollerdb.txt</file>
+2
View File
@@ -189,6 +189,8 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua
return "fr"; return "fr";
case LANG_ZH_CN: case LANG_ZH_CN:
return "zh_cn"; return "zh_cn";
case LANG_NB_NO:
return "nb_NO";
case LANG_AUTO: case LANG_AUTO:
default: default:
return QLocale::system().name(); return QLocale::system().name();
+2 -1
View File
@@ -69,7 +69,8 @@ public:
LANG_EN, LANG_EN,
LANG_FR, LANG_FR,
LANG_ZH_CN, LANG_ZH_CN,
LANG_DE LANG_DE,
LANG_NB_NO
}; };
Q_ENUM(Language); Q_ENUM(Language);