From 6ce97dd40893d5d6d20521624239307712aad507 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 15 Jun 2022 18:19:56 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=BF=AB=E7=85=A7=20?= =?UTF-8?q?https://github.com/siyuan-note/siyuan/issues/5159?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/appearance/langs/en_US.json | 3 +-- app/appearance/langs/fr_FR.json | 3 +-- app/appearance/langs/zh_CHT.json | 3 +-- app/appearance/langs/zh_CN.json | 3 +-- app/src/util/history.ts | 8 ++++---- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index 6a44748aa..ecf975c15 100644 --- a/app/appearance/langs/en_US.json +++ b/app/appearance/langs/en_US.json @@ -1,6 +1,4 @@ { - "size": "Size", - "count": "Count", "createSnapshot": "Create snapshot", "dataSnapshot": "Data snapshot", "copyKey": "Copy key string", @@ -92,6 +90,7 @@ "rectAnnotation": "Rectangular Annotation", "fileName": "File name:", "fileSize": "File size:", + "fileCount": "File count:", "title1": "Title:", "author": "Author:", "subject": "Subject:", diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json index b59a9d906..4f396218b 100644 --- a/app/appearance/langs/fr_FR.json +++ b/app/appearance/langs/fr_FR.json @@ -1,6 +1,4 @@ { - "size": "Taille", - "count": "Compter", "createSnapshot": "Créer un instantané", "dataSnapshot": "Instantané de données", "copyKey": "Copier la chaîne de clé", @@ -92,6 +90,7 @@ "rectAnnotation": "Annotation rectangulaire", "fileName": "Nom du fichier :", "fileSize": "Taille du fichier :", + "fileCount": "Nombre de fichiers :", "title1": "Titre :", "author": "Auteur :", "subject": "Sujet :", diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json index c46b601ed..d12ff4a03 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -1,6 +1,4 @@ { - "size": "尺寸", - "count": "計數", "createSnapshot": "創建快照", "dataSnapshot": "數據快照", "copyKey": "複製密鑰字符串", @@ -92,6 +90,7 @@ "rectAnnotation": "矩形標注", "fileName": "檔案名:", "fileSize": "文件大小:", + "fileCount": "文件數量:", "title1": "標題:", "author": "作者:", "subject": "主題:", diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 7c3841c11..fb098fc23 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -1,6 +1,4 @@ { - "size": "大小", - "count": "数量", "createSnapshot": "创建快照", "dataSnapshot": "数据快照", "copyKey": "复制密钥字符串", @@ -92,6 +90,7 @@ "rectAnnotation": "矩形标注", "fileName": "文件名:", "fileSize": "文件大小:", + "fileCount": "文件数量:", "title1": "标题:", "author": "作者:", "subject": "主题:", diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 27799cb93..f80e1bf66 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -135,11 +135,11 @@ const renderRepo = (element: Element, currentPage: number) => { `; if (index === 0) { element.lastElementChild.lastElementChild.innerHTML = `
- ${window.siyuan.languages.size} + ${window.siyuan.languages.fileSize} ${item.hSize} - ${window.siyuan.languages.count} + ${window.siyuan.languages.fileCount} ${item.count}
@@ -357,11 +357,11 @@ export const openHistory = () => { }); } else if (type === "repo") { target.parentElement.nextElementSibling.innerHTML = `
- ${window.siyuan.languages.size} + ${window.siyuan.languages.fileSize} ${target.getAttribute("data-hsize")} - ${window.siyuan.languages.count} + ${window.siyuan.languages.fileCount} ${target.getAttribute("data-count")}