Skip to content

Commit

Permalink
Vietnamese translation (#418)
Browse files Browse the repository at this point in the history
Add Vietnamese translation for core and standare package
  • Loading branch information
mrkey94 authored Nov 15, 2024
1 parent f3ddd74 commit 54aa8ca
Show file tree
Hide file tree
Showing 10 changed files with 649 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/*.o
/zh_CN.qm
/en_US.qm
/vi_VN.qm
/fk_ver

# IDE & LSP
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ if (NOT DEFINED FK_SERVER_ONLY)

TS_FILES lang/en_US.ts
QM_FILES_OUTPUT_VARIABLE en_US.qm

TS_FILES lang/vi_VN.ts
QM_FILES_OUTPUT_VARIABLE vi_VN.qm
)
endif()

Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt.OSX
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ if (NOT DEFINED FK_SERVER_ONLY)

TS_FILES lang/en_US.ts
QM_FILES_OUTPUT_VARIABLE en_US.qm

TS_FILES lang/vi_VN.ts
QM_FILES_OUTPUT_VARIABLE vi_VN.qm
)
endif()

Expand Down
2 changes: 2 additions & 0 deletions Fk/Config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ QtObject {
let ret = SysLocale;
if (ret.startsWith('zh_')) {
return 'zh_CN';
} else if (ret.startsWith('vi_')) {
return 'vi_VN';
} else {
return 'en_US';
}
Expand Down
2 changes: 1 addition & 1 deletion Fk/LobbyElement/BGSetting.qml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ColumnLayout {
text: "Language"
}
ComboBox {
model: ["zh_CN", "en_US"]
model: ["zh_CN", "en_US", "vi_VN"]
currentIndex: model.indexOf(config.language)
onCurrentTextChanged: { config.language = currentText; }
}
Expand Down
1 change: 1 addition & 0 deletions android/copy_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ cp ../server/init.sql assets/res/server
cp ../LICENSE assets/res
cp ../zh_CN.qm assets/res
cp ../en_US.qm assets/res
cp ../vi_VN.qm assets/res
cp ../fk_ver assets/res
cp ../waiting_tips.txt assets/res

Expand Down
Loading

0 comments on commit 54aa8ca

Please sign in to comment.