🎨 多语言配置缺失项使用对应英文配置项补齐 https://github.com/siyuan-note/siyuan/issues/5322

This commit is contained in:
Liang Ding 2022-08-07 18:17:15 +08:00
parent e30782d6f9
commit ad2510dfb5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 8 additions and 2 deletions

View file

@ -880,6 +880,7 @@
"119": "正在下載網絡圖片 [%s]",
"120": "下載完畢,一共 [%d] 個文件",
"122": "該功能需在思源桌面端進行配置",
"121": "該文檔中不存在網絡圖片",
"123": "新增/選擇雲端同步目錄後才能啟用同步功能",
"124": "請在 [設置 - 啟用雲端同步] 中開啟雲端同步",
"125": "自動同步下載失敗次數過多,請嘗試手動觸發同步,如果還有問題請<a href=\"https://ld246.com/article/1649901726096\" target=\"_blank\">反饋</a>",

View file

@ -480,8 +480,13 @@ func (conf *AppConf) GetClosedBoxes() (ret []*Box) {
return
}
func (conf *AppConf) Language(num int) string {
return langs[conf.Lang][num]
func (conf *AppConf) Language(num int) (ret string) {
ret = langs[conf.Lang][num]
if "" != ret {
return
}
ret = langs["en_US"][num]
return
}
func InitBoxes() {