Skip to content

Commit 2b786df

Browse files
committed
Edit: intergrate the change to setting menu and cmakelist
1 parent 48d3ec4 commit 2b786df

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

src/presentation/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ set(translation_files
2121
translations/librum_ru.ts
2222
translations/librum_ko.ts
2323
translations/librum_ar.ts
24-
translations/librum_zh.ts
24+
translations/librum_zh_CN.ts
25+
translations/librum_zh_TW.ts
2526
translations/librum_uk.ts
2627
translations/librum_pt.ts
2728
translations/librum_id.ts

src/presentation/TranslationsModel.qml

+6-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ ListModel {
3434
code: "ko"
3535
}
3636
ListElement {
37-
text: "中文"
38-
code: "zh"
37+
text: "简体中文"
38+
code: "zh_CN"
39+
}
40+
ListElement {
41+
text: "繁體中文"
42+
code: "zh_TW"
3943
}
4044
ListElement {
4145
text: "Português"

src/presentation/modules/CustomComponents/MLanguageModel.qml

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ ListModel {
2828
text: "Русский" // Russian
2929
}
3030
ListElement {
31-
text: "中文" // Chinese
31+
text: "简体中文" // Simplified Chinese
32+
}
33+
ListElement {
34+
text: "繁體中文" // Traditional Chinese
3235
}
3336
ListElement {
3437
text: "日本語" // Japanese

src/presentation/translations/librum_zh_TW.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!DOCTYPE TS>
3-
<TS version="2.1" language="zh_CN">
3+
<TS version="2.1" language="zh_TW">
44
<context>
55
<name>MAboutPage</name>
66
<message>

0 commit comments

Comments
 (0)