Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/10779

Vanessa3f515e0baa73
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index f857ac49e2..420303b5e5 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1,5 +1,5 @@
{
- "dndFolderTip": "Please note that inserting a folder only inserts the file:// hyperlink and does not copy the files in it",
+ "dndFolderTip": "Please note that ${x} only inserts the file:// hyperlink and does not copy the file",
"removeCol": "Are you sure you want to delete the ${x} column in the database?",
"video": "Video",
"audio": "Audio",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index 5e7ce507c1..5e2198a73d 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1,5 +1,5 @@
{
- "dndFolderTip": "Tenga en cuenta que al insertar una carpeta solo se inserta el hipervínculo file:// y no se copian los archivos que contiene",
+ "dndFolderTip": "Tenga en cuenta que ${x} solo inserta el hipervínculo file:// y no copia el archivo",
"removeCol": "¿Está seguro de que desea eliminar la columna ${x} en la base de datos?",
"vídeo": "Vídeo",
"audio": "Audio",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index d1341502eb..30cf4ad67c 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1,5 +1,5 @@
{
- "dndFolderTip": "Veuillez noter que l'insertion d'un dossier insère uniquement le lien hypertexte file:// et ne copie pas les fichiers qu'il contient",
+ "dndFolderTip": "Veuillez noter que ${x} insère uniquement le lien hypertexte file:// et ne copie pas le fichier",
"removeCol": "Êtes-vous sûr de vouloir supprimer la colonne ${x} de la base de données ?",
"video": "Vidéo",
"audio": "Audio",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index af6e413027..ac1785be5f 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1,5 +1,5 @@
{
- "dndFolderTip": "請注意,插入資料夾僅插入 file:// 超鏈接,不複製其中檔案",
+ "dndFolderTip": "請注意,${x} 僅插入 file:// 超鏈接,不複製檔案",
"removeCol": "確定刪除資料庫中的 ${x} 欄位?",
"video": "影片",
"audio": "音訊",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index e6b6971cad..f2c024e337 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1,5 +1,5 @@
{
- "dndFolderTip": "请注意,插入文件夹仅插入 file:// 超链接,不复制其中文件",
+ "dndFolderTip": "请注意,${x} 仅插入 file:// 超链接,不复制文件",
"removeCol": "确定删除数据库中的 ${x} 列?",
"video": "视频",
"audio": "音频",
diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.ts
index 080f9de62e..cf512af77c 100644
--- a/app/src/protyle/upload/index.ts
+++ b/app/src/protyle/upload/index.ts
@@ -168,6 +168,15 @@ export const uploadLocalFiles = (files: string[], protyle: IProtyle, isUpload: b
id: protyle.block.rootID
}, (response) => {
hideMessage(msgId);
+ let tip = ""
+ Object.keys(response.data.succMap).forEach(name => {
+ if (response.data.succMap[name].startsWith("file:")) {
+ tip += name + ", "
+ }
+ })
+ if (tip) {
+ showMessage(window.siyuan.languages.dndFolderTip.replace("${x}", `<b>${tip.substring(0, tip.length - 2)}</b>`));
+ }
genUploadedLabel(JSON.stringify(response), protyle);
});
};