Add Central Kurdish language (disabled until it's completed)

This commit is contained in:
Cameron Gutman 2024-04-30 22:35:04 -05:00
parent 6bd964a094
commit cb850f013a
5 changed files with 11 additions and 1 deletions

View File

@ -460,7 +460,8 @@ TRANSLATIONS += \
languages/qml_pt_BR.ts \
languages/qml_pl.ts \
languages/qml_cs.ts \
languages/qml_he.ts
languages/qml_he.ts \
languages/qml_ckb.ts
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

View File

@ -1052,6 +1052,10 @@ Flickable {
text: "עִבְרִית" // Hebrew
val: StreamingPreferences.LANG_HE
} */
/* ListElement {
text: "کرمانجیی خواروو" // Central Kurdish
val: StreamingPreferences.LANG_CKB
} */
}
// ::onActivated must be used, as it only listens for when the index is changed by a human
onActivated : {

View File

@ -64,6 +64,8 @@
<file>languages/qml_cs.qm</file>
<file>languages/qml_he.ts</file>
<file>languages/qml_he.qm</file>
<file>languages/qml_ckb.ts</file>
<file>languages/qml_ckb.qm</file>
<!-- Don't include pt_BR until it is more complete -->
<!--file>languages/qml_pt_BR.qm</file-->
<!--file>languages/qml_pt_BR.ts</file-->

View File

@ -287,6 +287,8 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua
return "cs";
case LANG_HE:
return "he";
case LANG_CKB:
return "ckb";
case LANG_AUTO:
default:
return QLocale::system().name();

View File

@ -91,6 +91,7 @@ public:
LANG_PL,
LANG_CS,
LANG_HE,
LANG_CKB,
};
Q_ENUM(Language);