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 c77afcbb4..10fab63d3 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 72d52ffd2..34671474f 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 8807d5454..6778a8818 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 ae7df823d..b60b927f0 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 ebd55d44f..9b6ac2be5 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 26235b2af..042756885 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 bec769f22..771fa8797 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 b44ff2e40..c44c9c9f9 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 9dd2e50b4..3219e3b42 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 8cf50154e..58f331d01 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 2c820ea21..b57f0dbe9 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 4617335de..ed8089774 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 36080f5be..3b281a25f 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 08f54500f..7e6095715 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 3ff073c9c..f860dbc88 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 bf15afb47..366082cc4 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 0d4ea8e00..5244704bb 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 0b0416f50..120bcb81e 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 4aef1587d..dadc27705 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 cb96687cc..c75b392da 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 ad430635d..0ed7642f3 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 83b84e6d9..66dbcd6b7 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 804ee83ee..3efbcc281 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 8f7b66f71..91ef210c8 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 8b3f29ac1..0b891ff03 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 5f3bdf93f..29fb6be3c 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 f5d24d604..3a923d742 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 1d510b107..cf077ac58 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 7345edb9c..66f140e99 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 fb3a341d9..9f4ad1835 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 3e50acf66..1ada40612 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 19006c7d1..9215464ea 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 3269963db..b18488b26 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 f4eb574f0..f5c0c22f7 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 9bdcb743e..e8bc76c8e 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 21c0562a1..6c741b31f 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?') + "
\