mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Add Norwegian Bokmål to the build
This commit is contained in:
+2
-1
@@ -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 =
|
||||||
|
|||||||
@@ -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 : {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user