From 8044b0926b6b3e59422e1c42caa5f0e07354f718 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Wed, 15 Mar 2023 17:26:33 +0800 Subject: [PATCH] opt: better short alias for the identical tip --- flutter/lib/models/file_model.dart | 2 +- src/lang/ca.rs | 2 +- src/lang/cn.rs | 2 +- src/lang/cs.rs | 2 +- src/lang/da.rs | 2 +- src/lang/de.rs | 2 +- src/lang/el.rs | 2 +- src/lang/en.rs | 1 + src/lang/eo.rs | 2 +- src/lang/es.rs | 2 +- src/lang/fa.rs | 2 +- src/lang/fr.rs | 2 +- src/lang/hu.rs | 2 +- src/lang/id.rs | 2 +- src/lang/it.rs | 2 +- src/lang/ja.rs | 2 +- src/lang/ko.rs | 2 +- src/lang/kz.rs | 2 +- src/lang/nl.rs | 2 +- src/lang/pl.rs | 2 +- src/lang/pt_PT.rs | 2 +- src/lang/ptbr.rs | 2 +- src/lang/ro.rs | 2 +- src/lang/ru.rs | 2 +- src/lang/sk.rs | 2 +- src/lang/sl.rs | 2 +- src/lang/sq.rs | 2 +- src/lang/sr.rs | 2 +- src/lang/sv.rs | 2 +- src/lang/template.rs | 2 +- src/lang/th.rs | 2 +- src/lang/tr.rs | 2 +- src/lang/tw.rs | 2 +- src/lang/ua.rs | 2 +- src/lang/vn.rs | 2 +- src/ui/file_transfer.tis | 2 +- 36 files changed, 36 insertions(+), 35 deletions(-) diff --git a/flutter/lib/models/file_model.dart b/flutter/lib/models/file_model.dart index c77afcbb..10fab63d 100644 --- a/flutter/lib/models/file_model.dart +++ b/flutter/lib/models/file_model.dart @@ -179,7 +179,7 @@ class FileModel { mainAxisSize: MainAxisSize.min, children: [ 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)) ], ), diff --git a/src/lang/ca.rs b/src/lang/ca.rs index 72d52ffd..34671474 100644 --- a/src/lang/ca.rs +++ b/src/lang/ca.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 8807d545..6778a881 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "此文件与对方的一致") + ("identical_file_tip", "此文件与对方的一致") ].iter().cloned().collect(); } diff --git a/src/lang/cs.rs b/src/lang/cs.rs index ae7df823..b60b927f 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/da.rs b/src/lang/da.rs index ebd55d44..9b6ac2be 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Tom brugernavn"), ("Empty Password", "Tom adgangskode"), ("Me", "Mig"), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/de.rs b/src/lang/de.rs index 26235b2a..04275688 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Leerer Benutzername"), ("Empty Password", "Leeres Passwort"), ("Me", "Ich"), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/el.rs b/src/lang/el.rs index bec769f2..771fa879 100644 --- a/src/lang/el.rs +++ b/src/lang/el.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Κενό όνομα χρήστη"), ("Empty Password", "Κενός κωδικός πρόσβασης"), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/en.rs b/src/lang/en.rs index b44ff2e4..c44c9c9f 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -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_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."), + ("identical_file_tip", "This file is identical with the peer's one.") ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 9dd2e50b..3219e3b4 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/es.rs b/src/lang/es.rs index 8cf50154..58f331d0 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Nombre de usuario vacío"), ("Empty Password", "Contraseña vacía"), ("Me", "Yo"), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/fa.rs b/src/lang/fa.rs index 2c820ea2..b57f0dbe 100644 --- a/src/lang/fa.rs +++ b/src/lang/fa.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 4617335d..ed808977 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/hu.rs b/src/lang/hu.rs index 36080f5b..3b281a25 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/id.rs b/src/lang/id.rs index 08f54500..7e609571 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index 3ff073c9..f860dbc8 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Nome Utente Vuoto"), ("Empty Password", "Password Vuota"), ("Me", "Io"), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ja.rs b/src/lang/ja.rs index bf15afb4..366082cc 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 0d4ea8e0..5244704b 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/kz.rs b/src/lang/kz.rs index 0b0416f5..120bcb81 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/nl.rs b/src/lang/nl.rs index 4aef1587..dadc2770 100644 --- a/src/lang/nl.rs +++ b/src/lang/nl.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", "Gebruikersnaam Leeg"), ("Empty Password", "Wachtwoord Leeg"), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/pl.rs b/src/lang/pl.rs index cb96687c..c75b392d 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index ad430635..0ed7642f 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 83b84e6d..66dbcd6b 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ro.rs b/src/lang/ro.rs index 804ee83e..3efbcc28 100644 --- a/src/lang/ro.rs +++ b/src/lang/ro.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 8f7b66f7..91ef210c 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 8b3f29ac..0b891ff0 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/sl.rs b/src/lang/sl.rs index 5f3bdf93..29fb6be3 100755 --- a/src/lang/sl.rs +++ b/src/lang/sl.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/sq.rs b/src/lang/sq.rs index f5d24d60..3a923d74 100644 --- a/src/lang/sq.rs +++ b/src/lang/sq.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/sr.rs b/src/lang/sr.rs index 1d510b10..cf077ac5 100644 --- a/src/lang/sr.rs +++ b/src/lang/sr.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/sv.rs b/src/lang/sv.rs index 7345edb9..66f140e9 100644 --- a/src/lang/sv.rs +++ b/src/lang/sv.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/template.rs b/src/lang/template.rs index fb3a341d..9f4ad183 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/th.rs b/src/lang/th.rs index 3e50acf6..1ada4061 100644 --- a/src/lang/th.rs +++ b/src/lang/th.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 19006c7d..9215464e 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 3269963d..b18488b2 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/ua.rs b/src/lang/ua.rs index f4eb574f..f5c0c22f 100644 --- a/src/lang/ua.rs +++ b/src/lang/ua.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 9bdcb743..e8bc76c8 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -477,6 +477,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Empty Username", ""), ("Empty Password", ""), ("Me", ""), - ("This file is identical with the peer's one", "") + ("identical_file_tip", "") ].iter().cloned().collect(); } diff --git a/src/ui/file_transfer.tis b/src/ui/file_transfer.tis index 21c0562a..6c741b31 100644 --- a/src/ui/file_transfer.tis +++ b/src/ui/file_transfer.tis @@ -780,7 +780,7 @@ handler.confirmDeleteFiles = function(id, i, name) { handler.overrideFileConfirm = function(id, file_num, to, is_upload, is_identical) { 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", "
\
" + translate('Overwrite') + " " + translate('files') + ".
\
" + translate('This file exists, skip or overwrite this file?') + "
\