feat: 全量英文界面(i18n 翻译表接入全部页面与服务层文案)

This commit is contained in:
ZV Team committed 2026-10-24 09:39:51 +08:00
1 parent 2eb3f42731
commit 71e76b1c2b
26 files changed
+775 -325

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'sftp_service.dart';
import '../../providers/server_provider.dart';
import '../../core/l10n/strings.dart';
enum DownloadStatus { queued, running, paused, completed, failed, canceled }
@@ -219,7 +220,7 @@ class DownloadManager extends ChangeNotifier {
} on DioException catch (e) {
if (token.isCancelled) return; // 暂停/取消
attempt++;
task.error = e.message ?? '网络错误';
task.error = e.message ?? S.t('网络错误');
if (attempt > maxRetry) {
_updateStatus(task.id, DownloadStatus.failed);
notifyListeners();