flutter-3.19.6

This commit is contained in:
wanghongenpin
2026-01-30 19:07:41 +08:00
parent 5cc4726723
commit 97deefcacc
4 changed files with 63 additions and 33 deletions

View File

@@ -8,6 +8,8 @@ import 'package:intl/intl.dart' as intl;
import 'app_localizations_en.dart';
import 'app_localizations_zh.dart';
// ignore_for_file: type=lint
/// Callers can lookup localized strings with an instance of AppLocalizations
/// returned by `AppLocalizations.of(context)`.
///
@@ -2169,27 +2171,28 @@ class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations>
}
AppLocalizations lookupAppLocalizations(Locale locale) {
// Lookup logic when language+script codes are specified.
switch (locale.languageCode) {
case 'zh': {
switch (locale.scriptCode) {
case 'Hant': return AppLocalizationsZhHant();
}
break;
}
case 'zh':
{
switch (locale.scriptCode) {
case 'Hant':
return AppLocalizationsZhHant();
}
break;
}
}
// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en': return AppLocalizationsEn();
case 'zh': return AppLocalizationsZh();
case 'en':
return AppLocalizationsEn();
case 'zh':
return AppLocalizationsZh();
}
throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.'
);
throw FlutterError('AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
}

View File

@@ -1,5 +1,9 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for English (`en`).
class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn([String locale = 'en']) : super(locale);
@@ -382,7 +386,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get appWhitelist => 'App Whitelist';
@override
String get appWhitelistDescribe => 'Only proxy Apps on the whitelist. If the whitelist is enabled, the blacklist will be invalid';
String get appWhitelistDescribe =>
'Only proxy Apps on the whitelist. If the whitelist is enabled, the blacklist will be invalid';
@override
String get appBlacklist => 'App Blacklist';
@@ -582,19 +587,22 @@ class AppLocalizationsEn extends AppLocalizations {
String get downloadRootCa => 'Download Certificate';
@override
String get downloadRootCaNote => 'Note: If you set the default browser to other than Safari, click this line to copy and paste the link to Safari browser';
String get downloadRootCaNote =>
'Note: If you set the default browser to other than Safari, click this line to copy and paste the link to Safari browser';
@override
String get generateCA => 'Generate new root certificate';
@override
String get generateCADescribe => 'Are you sure you want to generate a new root certificate? If confirmed,\nYou need to reinstall and trust the new certificate';
String get generateCADescribe =>
'Are you sure you want to generate a new root certificate? If confirmed,\nYou need to reinstall and trust the new certificate';
@override
String get resetDefaultCA => 'Reset Default Root Certificate';
@override
String get resetDefaultCADescribe => 'Are you sure you want to reset to the default root certificate?\nProxyPin default root certificate is the same for all users.';
String get resetDefaultCADescribe =>
'Are you sure you want to reset to the default root certificate?\nProxyPin default root certificate is the same for all users.';
@override
String get exportCaP12 => 'Export Root Certificate(.p12)';
@@ -627,7 +635,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get androidRoot => 'System Certificate (ROOT Device)';
@override
String get androidRootMagisk => 'Magisk module: \nAndroid ROOT devices can be used Magisk ProxyPinCA System Certificate Module, After installing and restarting the phone Check the system certificate to see if there is a ProxyPinCA certificate. If there is, it indicates that the certificate has been successfully installed。';
String get androidRootMagisk =>
'Magisk module: \nAndroid ROOT devices can be used Magisk ProxyPinCA System Certificate Module, After installing and restarting the phone Check the system certificate to see if there is a ProxyPinCA certificate. If there is, it indicates that the certificate has been successfully installed。';
@override
String androidRootRename(Object name) {
@@ -644,10 +653,12 @@ class AppLocalizationsEn extends AppLocalizations {
String get androidUserCATips => 'Tips: Android7+ many apps will not trust user certificates';
@override
String get androidUserCAInstall => 'Open settings -> Security -> Encryption and credentials -> Install certificate -> CA certificate';
String get androidUserCAInstall =>
'Open settings -> Security -> Encryption and credentials -> Install certificate -> CA certificate';
@override
String get androidUserXposed => 'It is recommended to use the Xposed module for packet capture (no need for ROOT), click to view wiki';
String get androidUserXposed =>
'It is recommended to use the Xposed module for packet capture (no need for ROOT), click to view wiki';
@override
String get configWifiProxy => 'Configure mobile Wi-Fi proxy';
@@ -742,7 +753,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get ipLayerProxy => 'IP Layer Proxy(Beta)';
@override
String get ipLayerProxyDesc => 'IP layer proxy can capture Flutter app requests, currently not very stable, welcome to submit PR';
String get ipLayerProxyDesc =>
'IP layer proxy can capture Flutter app requests, currently not very stable, welcome to submit PR';
@override
String get inputAddress => 'Input Address';
@@ -760,7 +772,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get invalidQRCode => 'Unrecognized QR code';
@override
String get remoteConnectFail => 'Connection failedPlease check if it is allowed on the same LAN and firewall, iOS needs to enable local network permissions';
String get remoteConnectFail =>
'Connection failedPlease check if it is allowed on the same LAN and firewall, iOS needs to enable local network permissions';
@override
String get remoteConnectSuccessTips => 'Your phone needs to enable packet capture in order to capture requests';
@@ -793,7 +806,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get memoryCleanup => 'Memory Cleanup';
@override
String get memoryCleanupSubtitle => 'Automatically clean up requests on memory limit reached and keep 32 most recent after cleaning';
String get memoryCleanupSubtitle =>
'Automatically clean up requests on memory limit reached and keep 32 most recent after cleaning';
@override
String get unlimited => 'Unlimited';
@@ -811,7 +825,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get externalProxyConnectFailure => 'External Proxy Connect failure';
@override
String get externalProxyFailureConfirm => 'Access to all http will fail due to network connectivity issuesDo you want to continue setting up external proxies。';
String get externalProxyFailureConfirm =>
'Access to all http will fail due to network connectivity issuesDo you want to continue setting up external proxies。';
@override
String get mobileDisplayPacketCapture => 'Mobile Display Packet Capture:';
@@ -828,7 +843,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get proxyIgnoreDomain => 'Proxy ignores domain';
@override
String get domainWhitelistDescribe => 'Only proxy domain names on the whitelist. If the whitelist is enabled, the blacklist will be invalid';
String get domainWhitelistDescribe =>
'Only proxy domain names on the whitelist. If the whitelist is enabled, the blacklist will be invalid';
@override
String get domainBlacklistDescribe => 'Domain names on the blacklist will not be proxied';
@@ -855,7 +871,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get material3 => 'Material 3 is the latest version of Googles open-source design system';
@override
String get iosVpnBackgroundAudio => 'After turning on packet capture, exit to the background. In order to maintain the main UI thread for network communication, a silent audio playback will be enabled to keep the main thread running. Otherwise, it will only run in the background for 30 seconds. Do you agree to play audio in the background after turning on packet capture?';
String get iosVpnBackgroundAudio =>
'After turning on packet capture, exit to the background. In order to maintain the main UI thread for network communication, a silent audio playback will be enabled to keep the main thread running. Otherwise, it will only run in the background for 30 seconds. Do you agree to play audio in the background after turning on packet capture?';
@override
String get markRead => 'Mark as read';
@@ -1005,7 +1022,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get sponsorSupport => 'Support ongoing development';
@override
String get sponsorThanks => 'Thank you for supporting this open-source project by choosing any of the following methods to help its long-term development.';
String get sponsorThanks =>
'Thank you for supporting this open-source project by choosing any of the following methods to help its long-term development.';
@override
String get sponsorAfdian => 'AFDIAN';

View File

@@ -1,5 +1,9 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Chinese (`zh`).
class AppLocalizationsZh extends AppLocalizations {
AppLocalizationsZh([String locale = 'zh']) : super(locale);
@@ -627,7 +631,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get androidRoot => '系统证书 (ROOT设备)';
@override
String get androidRootMagisk => 'Magisk模块: \n安卓ROOT设备可以使用Magisk ProxyPinCA系统证书模块, 安装完重启手机后 在系统证书查看是否有ProxyPinCA证书如果有说明证书安装成功。';
String get androidRootMagisk =>
'Magisk模块: \n安卓ROOT设备可以使用Magisk ProxyPinCA系统证书模块, 安装完重启手机后 在系统证书查看是否有ProxyPinCA证书如果有说明证书安装成功。';
@override
String androidRootRename(Object name) {
@@ -1053,7 +1058,7 @@ class AppLocalizationsZh extends AppLocalizations {
/// The translations for Chinese, using the Han script (`zh_Hant`).
class AppLocalizationsZhHant extends AppLocalizationsZh {
AppLocalizationsZhHant(): super('zh_Hant');
AppLocalizationsZhHant() : super('zh_Hant');
@override
String get requests => '抓包';
@@ -1678,7 +1683,8 @@ class AppLocalizationsZhHant extends AppLocalizationsZh {
String get androidRoot => '系統憑證 (ROOT裝置)';
@override
String get androidRootMagisk => 'Magisk模組: \n安卓ROOT裝置可以使用Magisk ProxyPinCA系統憑證模組, 安裝完重新開機後 在系統憑證檢視是否有ProxyPinCA憑證如果有說明憑證安裝成功。';
String get androidRootMagisk =>
'Magisk模組: \n安卓ROOT裝置可以使用Magisk ProxyPinCA系統憑證模組, 安裝完重新開機後 在系統憑證檢視是否有ProxyPinCA憑證如果有說明憑證安裝成功。';
@override
String androidRootRename(Object name) {
@@ -1906,7 +1912,8 @@ class AppLocalizationsZhHant extends AppLocalizationsZh {
String get material3 => 'Material3是Google開源設計系統的最新版本';
@override
String get iosVpnBackgroundAudio => '開啟抓包後退出到背景。為了維護主UI執行緒的網路通信將啟用靜音音訊播放以保持主執行緒運作。否則它將只在背景運作30秒。您同意在啟用抓包後在背景播放音訊嗎?';
String get iosVpnBackgroundAudio =>
'開啟抓包後退出到背景。為了維護主UI執行緒的網路通信將啟用靜音音訊播放以保持主執行緒運作。否則它將只在背景運作30秒。您同意在啟用抓包後在背景播放音訊嗎?';
@override
String get markRead => '標記已讀';

View File

@@ -9,6 +9,7 @@ import desktop_multi_window
import device_info_plus
import flutter_desktop_context_menu
import flutter_js
import path_provider_foundation
import proxy_manager
import screen_retriever_macos
import share_plus
@@ -21,6 +22,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FlutterDesktopContextMenuPlugin.register(with: registry.registrar(forPlugin: "FlutterDesktopContextMenuPlugin"))
FlutterJsPlugin.register(with: registry.registrar(forPlugin: "FlutterJsPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
ProxyManagerPlugin.register(with: registry.registrar(forPlugin: "ProxyManagerPlugin"))
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))