diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index f857ac49e..420303b5e 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 5e7ce507c..5e2198a73 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 d1341502e..30cf4ad67 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 af6e41302..ac1785be5 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 e6b6971ca..f2c024e33 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 080f9de62..cf512af77 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}", `${tip.substring(0, tip.length - 2)}`)); + } genUploadedLabel(JSON.stringify(response), protyle); }); };