feat: l10n

This commit is contained in:
xkeyC 2024-11-03 16:55:44 +08:00
parent 3c59a2ca57
commit 0577b54f9c
9 changed files with 87 additions and 18 deletions

View File

@ -23,7 +23,7 @@ class MessageLookup extends MessageLookupByLibrary {
static String m0(v0) => "Error: ${v0}";
static String m1(v0, v1) =>
"Network anomaly!\nThis may be that your network environment has DNS pollution, please try to replace DNS.\nOr the server is being maintained or attacked and tried it later.\nEnter the offline mode ...\n\nPlease use it carefully in the offline mode.\nThe current version of the construction date: ${v0}\n QQ group: 940696487\nError message: ${v1}";
"Network connection failed! \nEntering offline mode... \n\nPlease check the network connection or get the latest information in the social forum. You can try to enable the built-in DNS mode in the application settings \nCurrent version build date: ${v0}\nQQ group: 940696487 \nError message: ${v1}";
static String m2(v0, v1) => "SCToolBox V ${v0} ${v1}";
@ -982,6 +982,13 @@ class MessageLookup extends MessageLookupByLibrary {
"settings_app_language_switch_info":
MessageLookupByLibrary.simpleMessage(
"Switch application Display language"),
"settings_item_dns":
MessageLookupByLibrary.simpleMessage("Use built -in DNS"),
"settings_item_dns_info": MessageLookupByLibrary.simpleMessage(
"After opening, the problem of DNS pollution in some areas may be solved"),
"settings_title_game": MessageLookupByLibrary.simpleMessage("Game"),
"settings_title_general":
MessageLookupByLibrary.simpleMessage("Universal"),
"tools_action_clear_shader_cache": MessageLookupByLibrary.simpleMessage(
"Clean up the color device cache"),
"tools_action_close_photography_mode":

View File

@ -23,7 +23,7 @@ class MessageLookup extends MessageLookupByLibrary {
static String m0(v0) => "出现错误: ${v0}";
static String m1(v0, v1) =>
"网络异常!\n这可能是您的网络环境存在DNS污染请尝试更换DNS。\n或服务器正在维护或遭受攻击,稍后再试。 \n进入离线模式... \n\n请谨慎在离线模式中使用。 \n当前版本构建日期:${v0}\n QQ群940696487 \n错误信息:${v1}";
"网络连接失败! \n进入离线模式... \n\n请检查网络连接或在社交论坛获取最新资讯,可尝试在应用设置中方开启内置 DNS 模式 \n当前版本构建日期:${v0}\n QQ群940696487 \n错误信息:${v1}";
static String m2(v0, v1) => "SC汉化盒子 V${v0} ${v1}";
@ -875,6 +875,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("自动"),
"settings_app_language_switch_info":
MessageLookupByLibrary.simpleMessage("切换应用显示语言"),
"settings_item_dns": MessageLookupByLibrary.simpleMessage("使用内置 DNS"),
"settings_item_dns_info":
MessageLookupByLibrary.simpleMessage("开启后可能解决部分地区 DNS 污染的问题"),
"settings_title_game": MessageLookupByLibrary.simpleMessage("游戏"),
"settings_title_general": MessageLookupByLibrary.simpleMessage("通用"),
"tools_action_clear_shader_cache":
MessageLookupByLibrary.simpleMessage("清理着色器缓存"),
"tools_action_close_photography_mode":

View File

@ -23,7 +23,7 @@ class MessageLookup extends MessageLookupByLibrary {
static String m0(v0) => "出現錯誤: ${v0}";
static String m1(v0, v1) =>
"網路異常!\n這可能是您的網路環境存在DNS汙染請嘗試更換DNS。\n或伺服器正在維護或遭受攻擊,稍後再試。 \n進入離線模式... \n\n請謹慎在離線模式中使用。 \n目前版本構建日期:${v0}\n QQ群940696487 \n錯誤訊:${v1}";
"網路連線失敗!\n進入離線模式... \n\n 請檢查網路連線或在社群論壇取得最新資訊可嘗試在應用程式設定中方開啟內建DNS 模式\n目前版本建置日期: ${v0}\n QQ群940696487 \n錯誤${v1}";
static String m2(v0, v1) => "SC工具箱 V${v0} ${v1}";
@ -879,6 +879,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("自動"),
"settings_app_language_switch_info":
MessageLookupByLibrary.simpleMessage("切換應用程式的顯示語言"),
"settings_item_dns": MessageLookupByLibrary.simpleMessage("使用內置 DNS"),
"settings_item_dns_info":
MessageLookupByLibrary.simpleMessage("開啟後可能解決部分地區 DNS 污染的問題"),
"settings_title_game": MessageLookupByLibrary.simpleMessage("遊戲"),
"settings_title_general": MessageLookupByLibrary.simpleMessage("通用"),
"tools_action_clear_shader_cache":
MessageLookupByLibrary.simpleMessage("刪除著色器快取"),
"tools_action_close_photography_mode":

View File

@ -3232,10 +3232,10 @@ class S {
);
}
/// `Network anomaly!\nThis may be that your network environment has DNS pollution, please try to replace DNS.\nOr the server is being maintained or attacked and tried it later.\nEnter the offline mode ...\n\nPlease use it carefully in the offline mode.\nThe current version of the construction date: {v0}\n QQ group: 940696487\nError message: {v1}`
/// `Network connection failed! \nEntering offline mode... \n\nPlease check the network connection or get the latest information in the social forum. You can try to enable the built-in DNS mode in the application settings \nCurrent version build date: {v0}\nQQ group: 940696487 \nError message: {v1}`
String app_common_network_error(Object v0, Object v1) {
return Intl.message(
'Network anomaly!\nThis may be that your network environment has DNS pollution, please try to replace DNS.\nOr the server is being maintained or attacked and tried it later.\nEnter the offline mode ...\n\nPlease use it carefully in the offline mode.\nThe current version of the construction date: $v0\n QQ group: 940696487\nError message: $v1',
'Network connection failed! \nEntering offline mode... \n\nPlease check the network connection or get the latest information in the social forum. You can try to enable the built-in DNS mode in the application settings \nCurrent version build date: $v0\nQQ group: 940696487 \nError message: $v1',
name: 'app_common_network_error',
desc: '',
args: [v0, v1],
@ -4873,6 +4873,46 @@ class S {
args: [],
);
}
/// `Universal`
String get settings_title_general {
return Intl.message(
'Universal',
name: 'settings_title_general',
desc: '',
args: [],
);
}
/// `Use built -in DNS`
String get settings_item_dns {
return Intl.message(
'Use built -in DNS',
name: 'settings_item_dns',
desc: '',
args: [],
);
}
/// `After opening, the problem of DNS pollution in some areas may be solved`
String get settings_item_dns_info {
return Intl.message(
'After opening, the problem of DNS pollution in some areas may be solved',
name: 'settings_item_dns_info',
desc: '',
args: [],
);
}
/// `Game`
String get settings_title_game {
return Intl.message(
'Game',
name: 'settings_title_game',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View File

@ -637,7 +637,7 @@
"@settings_app_language": {},
"settings_app_language_auto": "Automatic",
"@settings_app_language_auto": {},
"app_common_network_error": "Network anomaly!\nThis may be that your network environment has DNS pollution, please try to replace DNS.\nOr the server is being maintained or attacked and tried it later.\nEnter the offline mode ...\n\nPlease use it carefully in the offline mode.\nThe current version of the construction date: {v0}\n QQ group: 940696487\nError message: {v1}",
"app_common_network_error": "Network connection failed! \nEntering offline mode... \n\nPlease check the network connection or get the latest information in the social forum. You can try to enable the built-in DNS mode in the application settings \nCurrent version build date: {v0}\nQQ group: 940696487 \nError message: {v1}",
"@app_common_network_error": {},
"app_common_upgrade_info_error": "If the update information fails, please try it later.",
"@app_common_upgrade_info_error": {},
@ -964,5 +964,9 @@
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan Crash",
"@doctor_game_error_gpu_vulkan_crash": {},
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan Crash! This may be the problem of driving version or game engine, please try to update the GPU driver or use the color cleaner function to return to DX11",
"@doctor_game_error_gpu_vulkan_crash_info": {}
}
"@doctor_game_error_gpu_vulkan_crash_info": {},
"settings_title_general": "Universal",
"settings_item_dns": "Use built -in DNS",
"settings_item_dns_info": "After opening, the problem of DNS pollution in some areas may be solved",
"settings_title_game": "Game"
}

View File

@ -634,7 +634,7 @@
"@app_init_failed_with_reason": {},
"settings_app_language": "语言",
"settings_app_language_auto": "自动",
"app_common_network_error": "网络异常!\n这可能是您的网络环境存在DNS污染请尝试更换DNS。\n或服务器正在维护或遭受攻击稍后再试。 \n进入离线模式... \n\n请谨慎在离线模式中使用。 \n当前版本构建日期{v0}\n QQ群940696487 \n错误信息{v1}",
"app_common_network_error": "网络连接失败! \n进入离线模式... \n\n请检查网络连接或在社交论坛获取最新资讯可尝试在应用设置中方开启内置 DNS 模式 \n当前版本构建日期{v0}\n QQ群940696487 \n错误信息{v1}",
"app_common_upgrade_info_error": "获取更新信息失败,请稍后重试。",
"doctor_game_error_low_memory": "可用内存不足",
"doctor_game_error_low_memory_info": "请尝试增加虚拟内存( 1080p 下, 物理可用+虚拟内存需 > 64G ",
@ -797,5 +797,9 @@
"tools_rsi_launcher_enhance_action_expand": "展开额外功能",
"tools_unp4k_missing_runtime": "缺少运行库",
"tools_unp4k_missing_runtime_info": "使用此功能需安装 .NET8 运行库,请点击下方按钮下载安装,安装成功后重新打开此页面即可继续使用。",
"tools_unp4k_missing_runtime_action_install": "安装运行库"
"tools_unp4k_missing_runtime_action_install": "安装运行库",
"settings_title_general": "通用",
"settings_item_dns": "使用内置 DNS",
"settings_item_dns_info": "开启后可能解决部分地区 DNS 污染的问题",
"settings_title_game": "游戏"
}

View File

@ -634,7 +634,7 @@
"@app_init_failed_with_reason": {},
"settings_app_language": "語言",
"settings_app_language_auto": "自動",
"app_common_network_error": "網路異常!\n這可能是您的網路環境存在DNS汙染請嘗試更換DNS。\n或伺服器正在維護或遭受攻擊稍後再試。 \n進入離線模式... \n\n請謹慎在離線模式中使用。 \n目前版本構建日期{v0}\n QQ群940696487 \n錯誤資訊{v1}",
"app_common_network_error": "網路連線失敗!\n進入離線模式... \n\n 請檢查網路連線或在社群論壇取得最新資訊可嘗試在應用程式設定中方開啟內建DNS 模式\n目前版本建置日期 {v0}\n QQ群940696487 \n錯誤訊息{v1}",
"app_common_upgrade_info_error": "獲取更新資訊失敗,請稍後重試。",
"doctor_game_error_low_memory": "可用記憶體不足",
"doctor_game_error_low_memory_info": "請嘗試增加虛擬記憶體( 1080p 下, 物理可用+虛擬記憶體需 > 64G ",
@ -797,5 +797,9 @@
"tools_unp4k_missing_runtime_info": "使用此功能需安裝 .NET8 運行庫,請點擊下方按鈕下載安裝,安裝成功後重新打開此頁面即可繼續使用。",
"tools_unp4k_missing_runtime_action_install": "安裝運行庫",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan 崩潰",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan 崩潰!這可能是驅動版本或遊戲引擎問題,請嘗試更新 GPU 驅動 或 使用清理著色器功能為您回退到 DX11"
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan 崩潰!這可能是驅動版本或遊戲引擎問題,請嘗試更新 GPU 驅動 或 使用清理著色器功能為您回退到 DX11",
"settings_title_general": "通用",
"settings_item_dns": "使用內置 DNS",
"settings_item_dns_info": "開啟後可能解決部分地區 DNS 污染的問題",
"settings_title_game": "遊戲"
}

View File

@ -15,7 +15,7 @@ class SettingsUI extends HookConsumerWidget {
final appGlobalState = ref.watch(appGlobalModelProvider);
final appGlobalModel = ref.read(appGlobalModelProvider.notifier);
return ListView(padding: const EdgeInsets.all(16), children: [
makeTitle("应用"),
makeTitle(S.current.settings_title_general),
makeSettingsItem(const Icon(FluentIcons.link, size: 20),
S.current.setting_action_create_settings_shortcut,
subTitle: S.current.setting_action_create_desktop_shortcut,
@ -33,8 +33,8 @@ class SettingsUI extends HookConsumerWidget {
),
const SizedBox(height: 12),
makeSettingsItem(
const Icon(FontAwesomeIcons.networkWired, size: 20), "使用内置 DNS",
subTitle: "开启后可能解决部分地区 DNS 污染的问题",
const Icon(FontAwesomeIcons.networkWired, size: 20), S.current.settings_item_dns,
subTitle: S.current.settings_item_dns_info,
switchStatus: sate.isUseInternalDNS,
onSwitch: model.onChangeUseInternalDNS,
onTap: () => model.onChangeUseInternalDNS(!sate.isUseInternalDNS)),
@ -57,7 +57,7 @@ class SettingsUI extends HookConsumerWidget {
S.current.setting_action_view_log,
onTap: () => model.showLogs(),
subTitle: S.current.setting_action_info_view_log_file),
makeTitle("功能"),
makeTitle(S.current.settings_title_game),
makeSettingsItem(const Icon(FontAwesomeIcons.microchip, size: 20),
S.current.setting_action_ignore_efficiency_cores_on_launch,
subTitle: S.current
@ -177,4 +177,4 @@ class SettingsUI extends HookConsumerWidget {
),
);
}
}
}

View File

@ -479,4 +479,4 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
}
return scriptBuffer.toString();
}
}
}