feat: 全量英文界面(i18n 翻译表接入全部页面与服务层文案)
This commit is contained in:
1 parent
2eb3f42731
commit
71e76b1c2b
26 files changed
+775
-325
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user