opt: better short alias for the identical tip

This commit is contained in:
Kingtous 2023-03-15 17:26:33 +08:00
parent 7a05910807
commit 8044b0926b
36 changed files with 36 additions and 35 deletions

View File

@ -179,7 +179,7 @@ class FileModel {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
const SizedBox(height: 12), const SizedBox(height: 12),
Text(translate("This file is identical with the peer's one"), Text(translate("identical_file_tip"),
style: const TextStyle(fontWeight: FontWeight.w500)) style: const TextStyle(fontWeight: FontWeight.w500))
], ],
), ),

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "此文件与对方的一致") ("identical_file_tip", "此文件与对方的一致")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Tom brugernavn"), ("Empty Username", "Tom brugernavn"),
("Empty Password", "Tom adgangskode"), ("Empty Password", "Tom adgangskode"),
("Me", "Mig"), ("Me", "Mig"),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Leerer Benutzername"), ("Empty Username", "Leerer Benutzername"),
("Empty Password", "Leeres Passwort"), ("Empty Password", "Leeres Passwort"),
("Me", "Ich"), ("Me", "Ich"),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Κενό όνομα χρήστη"), ("Empty Username", "Κενό όνομα χρήστη"),
("Empty Password", "Κενός κωδικός πρόσβασης"), ("Empty Password", "Κενός κωδικός πρόσβασης"),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -52,5 +52,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("empty_favorite_tip", "No favorite peers yet?\nLet's find someone to connect with and add it to your favorites!"), ("empty_favorite_tip", "No favorite peers yet?\nLet's find someone to connect with and add it to your favorites!"),
("empty_lan_tip", "Oh no, it looks like we haven't discovered any peers yet."), ("empty_lan_tip", "Oh no, it looks like we haven't discovered any peers yet."),
("empty_address_book_tip", "Oh dear, it appears that there are currently no peers listed in your address book."), ("empty_address_book_tip", "Oh dear, it appears that there are currently no peers listed in your address book."),
("identical_file_tip", "This file is identical with the peer's one.")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Nombre de usuario vacío"), ("Empty Username", "Nombre de usuario vacío"),
("Empty Password", "Contraseña vacía"), ("Empty Password", "Contraseña vacía"),
("Me", "Yo"), ("Me", "Yo"),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Nome Utente Vuoto"), ("Empty Username", "Nome Utente Vuoto"),
("Empty Password", "Password Vuota"), ("Empty Password", "Password Vuota"),
("Me", "Io"), ("Me", "Io"),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", "Gebruikersnaam Leeg"), ("Empty Username", "Gebruikersnaam Leeg"),
("Empty Password", "Wachtwoord Leeg"), ("Empty Password", "Wachtwoord Leeg"),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Empty Username", ""), ("Empty Username", ""),
("Empty Password", ""), ("Empty Password", ""),
("Me", ""), ("Me", ""),
("This file is identical with the peer's one", "") ("identical_file_tip", "")
].iter().cloned().collect(); ].iter().cloned().collect();
} }

View File

@ -780,7 +780,7 @@ handler.confirmDeleteFiles = function(id, i, name) {
handler.overrideFileConfirm = function(id, file_num, to, is_upload, is_identical) { handler.overrideFileConfirm = function(id, file_num, to, is_upload, is_identical) {
var jt = file_transfer.job_table; var jt = file_transfer.job_table;
var identical_msg = is_identical ? translate("This file is identical with the peer's one"): ""; var identical_msg = is_identical ? translate("identical_file_tip"): "";
msgbox("custom-skip", "Confirm Write Strategy", "<div .form> \ msgbox("custom-skip", "Confirm Write Strategy", "<div .form> \
<div>" + translate('Overwrite') + " " + translate('files') + ".</div> \ <div>" + translate('Overwrite') + " " + translate('files') + ".</div> \
<div>" + translate('This file exists, skip or overwrite this file?') + "</div> \ <div>" + translate('This file exists, skip or overwrite this file?') + "</div> \