diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 2616e8ed2..184b09d36 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -191,5 +191,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Add to Favorites", "加入到收藏"), ("Remove from Favorites", "从收藏中删除"), ("Empty", "空空如也"), + ("Invalid folder name", "无效文件夹名称"), ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 711d2e20a..0abe576ef 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -186,5 +186,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Password missed", "Mot de passe manqué"), ("Wrong credentials", "Identifiant ou mot de passe erroné"), ("Edit Tag", "Modifier la balise"), + ("Invalid folder name", "Nom de dossier invalide"), ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index 0b6f2ee15..83426a908 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -186,6 +186,7 @@ lazy_static::lazy_static! { ("Password missed", "Password dimenticata"), ("Wrong credentials", "Credenziali errate"), ("Edit Tag", "Modifica tag"), + ("Invalid folder name", "Nome della cartella non valido"), ].iter().cloned().collect(); } \ No newline at end of file diff --git a/src/ui/file_transfer.tis b/src/ui/file_transfer.tis index 83365d0ee..786eef8cf 100644 --- a/src/ui/file_transfer.tis +++ b/src/ui/file_transfer.tis @@ -440,7 +440,7 @@ class FolderView : Reactor.Component { var name = res.name.trim(); if (!name) return; if (name.indexOf(me.sep()) >= 0) { - msgbox("custom-error", "Create Folder", "Invalid folder name"); + handler.msgbox("custom-error", "Create Folder", "Invalid folder name"); return; } var path = me.joinPath(name); @@ -576,16 +576,16 @@ handler.jobDone = function(id, file_num = -1) { handler.jobError = function(id, err, file_num = -1) { var job = deleting_single_file_jobs[id]; if (job) { - msgbox("custom-error", "Delete File", err); + handler.msgbox("custom-error", "Delete File", err); return; } job = create_dir_jobs[id]; if (job) { - msgbox("custom-error", "Create Folder", err); + handler.msgbox("custom-error", "Create Folder", err); return; } if (file_num < 0) { - msgbox("custom-error", "Failed", err); + handler.msgbox("custom-error", "Failed", err); } file_transfer.job_table.updateJobStatus(id, file_num, err); } @@ -619,7 +619,7 @@ handler.confirmDeleteFiles = function(id, i, name) { if (i >= n) return; var file_path = job.path; if (name) file_path += handler.get_path_sep(job.is_remote) + name; - msgbox("custom-skip", "Confirm Delete", "