Add array of unicode HEX codes from a string in Ukranian: "Імпортовані

елементи", thanks Yaroslav
This commit is contained in:
Laurent Trinques
2023-01-03 01:25:58 +01:00
parent c5b4e033c4
commit 49cfd6b753
2 changed files with 125 additions and 7 deletions

View File

@@ -49,9 +49,30 @@ XmlElementCollection::XmlElementCollection(QETProject *project) :
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
const QChar russian_data[24] = {
0x0418, 0x043C, 0x043F, 0x043E, 0x0440, 0x0442, 0x0438, 0x0440,
0x043E, 0x0432, 0x0430, 0x043D, 0x043D, 0x044B, 0x0435, 0x0020,
0x044D, 0x043B, 0x0435, 0x043C, 0x0435, 0x043D, 0x0442, 0x044B};
0x0418,
0x043C,
0x043F,
0x043E,
0x0440,
0x0442,
0x0438,
0x0440,
0x043E,
0x0432,
0x0430,
0x043D,
0x043D,
0x044B,
0x0435,
0x0020,
0x044D,
0x043B,
0x0435,
0x043C,
0x0435,
0x043D,
0x0442,
0x044B};
const QChar greek_data[18] = {
0x0395,
0x03b9,
@@ -84,6 +105,39 @@ XmlElementCollection::XmlElementCollection(QETProject *project) :
0x006C,
0x0065,
0x0072};
const QChar ukrainian_data[20] = {
0x0406,
0x043c,
0x043f,
0x043e,
0x0440,
0x0442,
0x043e,
0x0432,
0x0430,
0x043d,
0x0456,
0x0020,
0x0435,
0x043b,
0x0435,
0x043c,
0x0435,
0x043d,
0x0442,
0x0438};
const QChar japanese_data[10] = {
0x30A4,
0x30F3,
0x30D0,
0x30FC,
0x30C8,
0x3055,
0x308C,
0x305F,
0x8981,
0x7D20};
names.addName("fr", "Éléments importés");
names.addName("en", "Imported elements");
names.addName("de", "Importierte elemente");
@@ -100,8 +154,9 @@ XmlElementCollection::XmlElementCollection(QETProject *project) :
names.addName("ro", "Elemente importate");
names.addName("tr", QString(turkish_data, 12));
names.addName("da", "Importerede elementer");
names.addName("hr", "Uvezeni elementi");
names.addName("sl", "Uvoženi elementi");
names.addName("ja", QString(japanese_data, 10));
names.addName("uk", QString(ukrainian_data, 20));
#else
# if TODO_LIST
# pragma message("@TODO remove code for QT 6 or later")
@@ -122,6 +177,7 @@ XmlElementCollection::XmlElementCollection(QETProject *project) :
names.addName("da", "Importerede elementer");
names.addName("hr", "Uvezeni elementi");
names.addName("sl", "Uvoženi elementi");
names.addName("uk", "Імпортовані елементи");
#endif
import.appendChild(names.toXml(m_dom_document));