This commit is contained in:
lollipopkit
2023-10-05 21:17:04 +08:00
parent a23a284d1a
commit da65babd56
20 changed files with 169 additions and 83 deletions

View File

@@ -338,7 +338,7 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
final fileName = file.path.split('/').last;
context.showRoundDialog(
title: Text(l10n.delete),
child: Text(l10n.askContinue('${l10n.delete}: $fileName')),
child: Text(l10n.askContinue('${l10n.delete} $fileName')),
actions: [
TextButton(
onPressed: () => context.pop(),

View File

@@ -412,10 +412,10 @@ class _SftpPageState extends State<SftpPage> with AfterLayoutMixin {
final useRmr = Stores.setting.sftpRmrDir.fetch();
final text = () {
if (isDir && !useRmr) {
return l10n.askContinue(
'${l10n.dirEmpty}\n${l10n.delete} ${l10n.files}(${file.filename})');
return l10n
.askContinue('${l10n.dirEmpty}\n${l10n.delete} ${file.filename}');
}
return l10n.askContinue('${l10n.delete} ${l10n.files}(${file.filename})');
return l10n.askContinue('${l10n.delete} ${file.filename}');
}();
context.showRoundDialog(
child: Text(text),