feat: downloader update

This commit is contained in:
xkeyC
2025-12-05 17:12:40 +08:00
parent 4315e36cbe
commit 289691896d
23 changed files with 1001 additions and 118 deletions

View File

@@ -614,6 +614,12 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_action_pause_download": MessageLookupByLibrary.simpleMessage(
"Pause Download",
),
"downloader_action_restart_later": MessageLookupByLibrary.simpleMessage(
"Apply Later",
),
"downloader_action_restart_now": MessageLookupByLibrary.simpleMessage(
"Restart Now",
),
"downloader_action_resume_all": MessageLookupByLibrary.simpleMessage(
"Resume All",
),
@@ -645,6 +651,14 @@ class MessageLookup extends MessageLookupByLibrary {
"SCToolbox uses p2p network to accelerate file downloads. If you have limited bandwidth, you can set the upload bandwidth to 1(byte) here.",
),
"downloader_info_paused": MessageLookupByLibrary.simpleMessage("Paused"),
"downloader_info_restart_manager_to_apply":
MessageLookupByLibrary.simpleMessage(
"Speed limit settings saved. Restart the download manager now to apply new settings?",
),
"downloader_info_speed_limit_saved_restart_required":
MessageLookupByLibrary.simpleMessage(
"Speed limit settings saved. Will apply on next downloader start.",
),
"downloader_info_status": m22,
"downloader_info_total_size": m23,
"downloader_info_uploaded": m24,

View File

@@ -551,6 +551,12 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_action_pause_download": MessageLookupByLibrary.simpleMessage(
"ダウンロードを一時停止",
),
"downloader_action_restart_later": MessageLookupByLibrary.simpleMessage(
"後で適用",
),
"downloader_action_restart_now": MessageLookupByLibrary.simpleMessage(
"今すぐ再起動",
),
"downloader_action_resume_all": MessageLookupByLibrary.simpleMessage(
"すべて再開",
),
@@ -582,6 +588,14 @@ class MessageLookup extends MessageLookupByLibrary {
"SCToolboxはファイルダウンロードを高速化するためにP2Pネットワークを使用しています。通信量に制限がある場合は、アップロード帯域幅を1(byte)に設定できます。",
),
"downloader_info_paused": MessageLookupByLibrary.simpleMessage("一時停止中"),
"downloader_info_restart_manager_to_apply":
MessageLookupByLibrary.simpleMessage(
"速度制限設定が保存されました。新しい設定を適用するためにダウンロードマネージャーを今すぐ再起動しますか?",
),
"downloader_info_speed_limit_saved_restart_required":
MessageLookupByLibrary.simpleMessage(
"速度制限設定が保存されました。次回のダウンローダー起動時に適用されます。",
),
"downloader_info_status": m22,
"downloader_info_total_size": m23,
"downloader_info_uploaded": m24,

View File

@@ -591,6 +591,12 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_action_pause_download": MessageLookupByLibrary.simpleMessage(
"Приостановить загрузку",
),
"downloader_action_restart_later": MessageLookupByLibrary.simpleMessage(
"Применить позже",
),
"downloader_action_restart_now": MessageLookupByLibrary.simpleMessage(
"Перезапустить сейчас",
),
"downloader_action_resume_all": MessageLookupByLibrary.simpleMessage(
"Возобновить все",
),
@@ -624,6 +630,14 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_info_paused": MessageLookupByLibrary.simpleMessage(
"Приостановлено",
),
"downloader_info_restart_manager_to_apply":
MessageLookupByLibrary.simpleMessage(
"Настройки ограничения скорости сохранены. Перезапустить менеджер загрузок сейчас для применения новых настроек?",
),
"downloader_info_speed_limit_saved_restart_required":
MessageLookupByLibrary.simpleMessage(
"Настройки ограничения скорости сохранены. Будут применены при следующем запуске загрузчика.",
),
"downloader_info_status": m22,
"downloader_info_total_size": m23,
"downloader_info_uploaded": m24,

View File

@@ -538,6 +538,12 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_action_pause_download": MessageLookupByLibrary.simpleMessage(
"暂停下载",
),
"downloader_action_restart_later": MessageLookupByLibrary.simpleMessage(
"下次启动时生效",
),
"downloader_action_restart_now": MessageLookupByLibrary.simpleMessage(
"立即重启下载管理器",
),
"downloader_action_resume_all": MessageLookupByLibrary.simpleMessage(
"恢复全部",
),
@@ -565,6 +571,10 @@ class MessageLookup extends MessageLookupByLibrary {
"SC 汉化盒子使用 p2p 网络来加速文件下载,如果您流量有限,可在此处将上传带宽设置为 1(byte)。",
),
"downloader_info_paused": MessageLookupByLibrary.simpleMessage("已暂停"),
"downloader_info_restart_manager_to_apply":
MessageLookupByLibrary.simpleMessage("限速设置已保存。是否立即重启下载管理器以应用新设置?"),
"downloader_info_speed_limit_saved_restart_required":
MessageLookupByLibrary.simpleMessage("限速设置已保存,将在下次启动下载器时生效。"),
"downloader_info_status": m22,
"downloader_info_total_size": m23,
"downloader_info_uploaded": m24,

View File

@@ -522,6 +522,12 @@ class MessageLookup extends MessageLookupByLibrary {
"downloader_action_pause_download": MessageLookupByLibrary.simpleMessage(
"暫停下載",
),
"downloader_action_restart_later": MessageLookupByLibrary.simpleMessage(
"稍後套用",
),
"downloader_action_restart_now": MessageLookupByLibrary.simpleMessage(
"立即重新啟動",
),
"downloader_action_resume_all": MessageLookupByLibrary.simpleMessage(
"全部繼續",
),
@@ -549,6 +555,10 @@ class MessageLookup extends MessageLookupByLibrary {
"SC 工具箱使用 p2p 網路來加速文件下載,如果您流量有限,可在此處將上傳頻寬設定為 1(byte)。",
),
"downloader_info_paused": MessageLookupByLibrary.simpleMessage("已暫停"),
"downloader_info_restart_manager_to_apply":
MessageLookupByLibrary.simpleMessage("限速設定已儲存。是否立即重新啟動下載管理器以套用新設定?"),
"downloader_info_speed_limit_saved_restart_required":
MessageLookupByLibrary.simpleMessage("限速設定已儲存,將在下次啟動下載器時生效。"),
"downloader_info_status": m22,
"downloader_info_total_size": m23,
"downloader_info_uploaded": m24,

View File

@@ -28,10 +28,9 @@ class S {
static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
static Future<S> load(Locale locale) {
final name =
(locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final name = (locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;
@@ -715,6 +714,46 @@ class S {
);
}
/// `Speed limit settings saved. Will apply on next downloader start.`
String get downloader_info_speed_limit_saved_restart_required {
return Intl.message(
'Speed limit settings saved. Will apply on next downloader start.',
name: 'downloader_info_speed_limit_saved_restart_required',
desc: '',
args: [],
);
}
/// `Restart Now`
String get downloader_action_restart_now {
return Intl.message(
'Restart Now',
name: 'downloader_action_restart_now',
desc: '',
args: [],
);
}
/// `Apply Later`
String get downloader_action_restart_later {
return Intl.message(
'Apply Later',
name: 'downloader_action_restart_later',
desc: '',
args: [],
);
}
/// `Speed limit settings saved. Restart the download manager now to apply new settings?`
String get downloader_info_restart_manager_to_apply {
return Intl.message(
'Speed limit settings saved. Restart the download manager now to apply new settings?',
name: 'downloader_info_restart_manager_to_apply',
desc: '',
args: [],
);
}
/// `One-Click Diagnosis -> {v0}`
String doctor_title_one_click_diagnosis(Object v0) {
return Intl.message(