Add Norwegian Bokmål to the build

This commit is contained in:
Cameron Gutman 2021-03-24 20:40:22 -05:00
commit 48dde310ae
5 changed files with 12 additions and 2 deletions

View file

@ -327,7 +327,8 @@ RESOURCES += \
TRANSLATIONS += \
languages/qml_zh_cn.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
QML_IMPORT_PATH =

View file

@ -781,6 +781,10 @@ Flickable {
text: "简体中文" //Simplified Chinese
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 : {

View file

@ -23,6 +23,8 @@
<file>languages/qml_fr.qm</file>
<file>languages/qml_zh_cn.ts</file>
<file>languages/qml_zh_cn.qm</file>
<file>languages/qml_nb_NO.ts</file>
<file>languages/qml_nb_NO.qm</file>
</qresource>
<qresource prefix="/data">
<file alias="gamecontrollerdb.txt">SDL_GameControllerDB/gamecontrollerdb.txt</file>

View file

@ -189,6 +189,8 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua
return "fr";
case LANG_ZH_CN:
return "zh_cn";
case LANG_NB_NO:
return "nb_NO";
case LANG_AUTO:
default:
return QLocale::system().name();

View file

@ -69,7 +69,8 @@ public:
LANG_EN,
LANG_FR,
LANG_ZH_CN,
LANG_DE
LANG_DE,
LANG_NB_NO
};
Q_ENUM(Language);