Pārlūkot izejas kodu

Finalized share error message

Toby Chui 3 gadi atpakaļ
vecāks
revīzija
60a2c16ad4

+ 1 - 2
web/SystemAO/file_system/file_explorer.html

@@ -3678,7 +3678,6 @@
                 }
             });
 
-
             function handleShareFilebuttonClick(event, object){
                 event.preventDefault(); 
                 event.stopImmediatePropagation();
@@ -3714,7 +3713,7 @@
                     data: {path: selectedFile},
                     success: function(data){
                         if (data.error !== undefined){
-                            msgbox("remove",data.error);
+                            msgbox("remove",applocale.getString("message/" + data.error,data.error));
                         }else{
                             //Build the predicted share endpoint
                             let protocol = "https://";

+ 1 - 2
web/SystemAO/locale/file_explorer.json

@@ -120,8 +120,6 @@
                 "upload/count/uploading": " 上載中",
                 "upload/count/pending": " 等待中",
 
-                "error/Permission Denied: You are not the file owner nor can write to this file": "存取被拒:您不是分享檔案者或有權訪問此檔案",
-
                 "message/rename/success": "重新命名成功",
                 "message/copy/success": " 個檔案已複製",
                 "message/move/success": " 個檔案已移動",
@@ -137,6 +135,7 @@
                 "message/unknownSize": "未知大小",
                 "message/loading": "載入中",
                 "message/initiating": "正在初始化",
+                "message/Permission Denied: You are not the file owner nor can write to this file": "存取被拒:您不是分享檔案者或有權訪問此檔案",
 
                 "message/destIdentical": "檔案來源及目的地相同",
                 "message/decodeFilelistFail": "載案置入失敗:無法讀取檔案列表",