mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 19:11:54 +08:00
初步的 kvmd 国际化(汉化)支持
1. 添加汉化文件 2. 添加 Lanuages().gettext 函数处理字符替换 3. 修改相关字符串调用
This commit is contained in:
3
make-zh_translation.sh
Normal file
3
make-zh_translation.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
pybabel extract -F babel.cfg -o message.pot .
|
||||
pybabel update -d kvmd/i18n -l zh -D message -i message.pot
|
||||
pybabel compile -i kvmd/i18n/zh/LC_MESSAGES/message.po -o kvmd/i18n/zh/LC_MESSAGES/message.mo
|
||||
Reference in New Issue
Block a user