Integrate Czech and Polish translations

This commit is contained in:
Cameron Gutman 2022-05-07 14:32:07 -05:00
parent 4e8618c512
commit 092c0a7392
5 changed files with 21 additions and 1 deletions

View File

@ -370,7 +370,9 @@ TRANSLATIONS += \
languages/qml_hi.ts \
languages/qml_it.ts \
languages/qml_pt.ts \
languages/qml_pt_BR.ts
languages/qml_pt_BR.ts \
languages/qml_pl.ts \
languages/qml_cs.ts
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

View File

@ -871,6 +871,14 @@ Flickable {
text: "हिन्दी, हिंदी" // Hindi
val: StreamingPreferences.LANG_HI
} */
ListElement {
text: "Język polski" // Polish
val: StreamingPreferences.LANG_PL
}
ListElement {
text: "Čeština" // Czech
val: StreamingPreferences.LANG_CS
}
}
// ::onActivated must be used, as it only listens for when the index is changed by a human
onActivated : {

View File

@ -57,6 +57,10 @@
<file>languages/qml_it.qm</file>
<file>languages/qml_pt.ts</file>
<file>languages/qml_pt.qm</file>
<file>languages/qml_pl.ts</file>
<file>languages/qml_pl.qm</file>
<file>languages/qml_cs.ts</file>
<file>languages/qml_cs.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

@ -227,6 +227,10 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua
return "it";
case LANG_HI:
return "hi";
case LANG_PL:
return "pl";
case LANG_CS:
return "cs";
case LANG_AUTO:
default:
return QLocale::system().name();

View File

@ -88,6 +88,8 @@ public:
LANG_EL,
LANG_IT,
LANG_HI,
LANG_PL,
LANG_CS,
};
Q_ENUM(Language);