From c1351e760b8bb51fb0a34131dccc0605fbc712b5 Mon Sep 17 00:00:00 2001 From: gaowanliang <1175373504@qq.com> Date: Mon, 28 Dec 2020 09:06:52 +0800 Subject: [PATCH] solved message "" not found --- Aria2.go | 1 - i18n/active.zh-TW.json | 4 +++- utils.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Aria2.go b/Aria2.go index 7b057c1..aaaad56 100644 --- a/Aria2.go +++ b/Aria2.go @@ -57,7 +57,6 @@ func ariaDisconnectionMonitoring() { log.Printf(locText("connectSuccess"), version.Version) timeout = 1 } - } } diff --git a/i18n/active.zh-TW.json b/i18n/active.zh-TW.json index 672ff29..84ca1b6 100644 --- a/i18n/active.zh-TW.json +++ b/i18n/active.zh-TW.json @@ -90,5 +90,7 @@ "oneDriveOAuthFileCreateSuccess": "OneDrive OAuth2檔創建成功,保存至:", "noOneDriveInfo": "沒有OneDrive上傳配置,是否需要新建配置", "accountsAreCurrentlyLogin": "目前登錄的帳號如下:\n", - "selectAccount": "請選擇要上傳到的帳戶" + "selectAccount": "請選擇要上傳到的帳戶", + "ariaDisconnect": "監測到aria2斷線,準備重連", + "reconnectionFailed": "第%d次重連失敗,等待%d秒後重連" } \ No newline at end of file diff --git a/utils.go b/utils.go index 121c074..1d0d312 100644 --- a/utils.go +++ b/utils.go @@ -218,7 +218,7 @@ func CopyFiles(srcFiles []string) { newMsg := sendAutoUpdateMessage() for _, srcPath := range srcFiles { if srcPath != info.DownloadFolder && srcPath != info.DownloadFolder+"/" { - newMsg(fmt.Sprintf(locText(""), srcPath, destPath+path.Base(srcPath))) + newMsg(fmt.Sprintf(locText("copyingTo"), srcPath, destPath+path.Base(srcPath))) //log.Println(srcPath) file1, err := os.Open(srcPath) dropErr(err)