Add Norwegian Bokmål to the build
This commit is contained in:
parent
6b041e7657
commit
48dde310ae
5 changed files with 12 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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 : {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ public:
|
|||
LANG_EN,
|
||||
LANG_FR,
|
||||
LANG_ZH_CN,
|
||||
LANG_DE
|
||||
LANG_DE,
|
||||
LANG_NB_NO
|
||||
};
|
||||
Q_ENUM(Language);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue