Skip to content

Commit

Permalink
🎨 公测云端同步数据仓库 #5337
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jul 6, 2022
1 parent 500b0b8 commit 6e5278d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@
"150": "Uploaded/Downloaded files %d/%d\nUploaded/Downloaded chunks %d/%d\nSent/Received bytes %s/%s",
"151": "Do not include symbols \\ / : * ? " ' < > |",
"152": "Uploaded files %d, chunks %d, sent bytes %s",
"153": "Downloaded files %d, chunks %d, received bytes %s"
"153": "Downloaded files %d, chunks %d, received bytes %s",
"154": "The cloud can only support backup up to 12 snapshots"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@
"150": "Archivos cargados/descargados %d/%d\nFragmentos cargados/descargados %d/%d\nBytes enviados/recibidos %s/%s",
"151": "No incluir símbolos \\ / : * ? " ' < > |",
"152": "Archivos cargados %d, fragmentos %d, bytes enviados %s",
"153": "Archivos descargados %d, fragmentos %d, bytes recibidos %s"
"153": "Archivos descargados %d, fragmentos %d, bytes recibidos %s",
"154": "La nube solo admite copias de seguridad de hasta 12 instantáneas"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@
"150": "Fichiers chargés/téléchargés %d/%d\nMorceaux chargés/téléchargés %d/%d\nOctets envoyés/reçus %s/%s",
"151": "Ne pas inclure les symboles \\ / : * ? " ' < > |",
"152": "Fichiers téléchargés %d, morceaux %d, octets envoyés %s",
"153": "Fichiers chargés %d, morceaux %d, octets reçus %s"
"153": "Fichiers chargés %d, morceaux %d, octets reçus %s",
"154": "Le cloud ne peut prendre en charge que la sauvegarde jusqu'à 12 instantanés"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@
"150": "上傳/下載文件數 %d/%d\n上傳/下載分塊數 %d/%d\n發送/接收字節數 %s/%s",
"151": "請勿包含符號 \\ / : * ? " ' < > |",
"152": "上傳文件數 %d 上傳分塊數 %d 發送字節數 %s",
"153": "下載文件數 %d 下載分塊數 %d 接收字節數 %s"
"153": "下載文件數 %d 下載分塊數 %d 接收字節數 %s",
"154": "雲端最多只能支持備份 12 個快照"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@
"150": "上传/下载文件数 %d/%d\n上传/下载分块数 %d/%d\n发送/接收字节数 %s/%s",
"151": "请勿包含符号 \\ / : * ? " ' < > |",
"152": "上传文件数 %d 上传分块数 %d 发送字节数 %s",
"153": "下载文件数 %d 下载分块数 %d 接收字节数 %s"
"153": "下载文件数 %d 下载分块数 %d 接收字节数 %s",
"154": "云端最多只能支持备份 12 个快照"
}
}
4 changes: 4 additions & 0 deletions kernel/model/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ func UploadCloudSnapshot(tag, id string) (err error) {
defer util.PushClearProgress()
uploadFileCount, uploadChunkCount, uploadBytes, err := repo.UploadTagIndex(tag, id, cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBarAndProgress})
if nil != err {
if errors.Is(err, dejavu.ErrCloudBackupCountExceeded) {

}

return
}
msg := fmt.Sprintf(Conf.Language(152), uploadFileCount, uploadChunkCount, byteCountSI(uploadBytes))
Expand Down

0 comments on commit 6e5278d

Please sign in to comment.