feat: Remove custom localization

This commit is contained in:
xkeyC 2024-05-03 13:13:44 +08:00
parent dd14a34285
commit edc65e68c9
10 changed files with 59 additions and 419 deletions

View File

@ -114,10 +114,11 @@ class AppGlobalModel extends _$AppGlobalModel {
final applicationSupportDir =
(await getApplicationSupportDirectory()).absolute.path;
String? applicationBinaryModuleDir;
final logFile = File(
"$applicationSupportDir\\logs\\${DateTime.now().millisecondsSinceEpoch}.log");
await logFile.create(recursive: true);
setDPrintFile(logFile);
try {
await initDPrintFile(applicationSupportDir);
} catch (e) {
dPrint("initDPrintFile Error: $e");
}
if (ConstConf.isMSE && userProfileDir != null) {
applicationBinaryModuleDir =
"$userProfileDir\\AppData\\Local\\Temp\\SCToolbox\\modules";

View File

@ -120,33 +120,30 @@ class MessageLookup extends MessageLookupByLibrary {
static String m42(v0) =>
"The cache size ${v0} MB, clean up the Localization -based file cache of the download of the box, will not affect the installed Localization";
static String m43(v0, v1, v2, v3) =>
"Enable: ${v0} Device Support: ${v1} Email: ${v2} Password: ${v3}";
static String m44(v0) =>
static String m43(v0) =>
"Core quantity that has been set: ${v0} (This function is suitable for the box -click startup or RSI starter manager mode on the homepage, which is not enabled when it is 0)";
static String m45(v0) =>
static String m44(v0) =>
"Failure to clean up, please remove manually, file location: ${v0}";
static String m46(v0) => "Error: ${v0}";
static String m45(v0) => "Error: ${v0}";
static String m47(v0) =>
static String m46(v0) =>
"Initialization failed, please take a screenshot report to the developer. ${v0}";
static String m48(v0) =>
static String m47(v0) =>
"If you have a problem with the NVME patch, run this tool. (It may cause game installation/update to be unavailable.)\n\nCurrent patch status: ${v0}";
static String m49(v0) =>
static String m48(v0) =>
"In some cases, the LOG file of the RSI promoter will be damaged, causing the problem to be scanned, and using this tool to clean up the damaged log file.\n\nCurrent log file size: ${v0} MB";
static String m50(v0) =>
static String m49(v0) =>
"If the game screen appears abnormal or the version is updated, you can use the tool to clean the expired color (when it is greater than 500m, it is recommended to clean it)\n\nCache size: ${v0} MB";
static String m51(v0, v1, v2, v3, v4) =>
static String m50(v0, v1, v2, v3, v4) =>
"System: ${v0}\n\nProcessor: ${v1}\n\nMemory size: ${v2} gb\n\nGraphics card information:\n${v3}\n\nStorage information:\n${v4}\n\n";
static String m52(v0) => "Failure to handle! : ${v0}";
static String m51(v0) => "Failure to handle! : ${v0}";
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
@ -574,8 +571,6 @@ class MessageLookup extends MessageLookupByLibrary {
"lobby_online_lobby_coming_soon": MessageLookupByLibrary.simpleMessage(
"The online lobby, so stay tuned!"),
"lobby_survey": MessageLookupByLibrary.simpleMessage("Questionnaire."),
"localization_action_advanced_features":
MessageLookupByLibrary.simpleMessage("Advanced Features"),
"localization_action_install":
MessageLookupByLibrary.simpleMessage("Install"),
"localization_action_translation_feedback":
@ -590,13 +585,8 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage(
"The file is damaged, please download again"),
"localization_info_custom_file": m33,
"localization_info_custom_file_instructions":
MessageLookupByLibrary.simpleMessage(
"To open the localized folder, put the customized name .ini file in the Customize_ini folder.\n\nAfter adding a new file, you do not display the refresh button in the upper right corner.\n\nPlease make sure to choose the correct language during installation."),
"localization_info_custom_files":
MessageLookupByLibrary.simpleMessage("Custom file"),
"localization_info_custom_text":
MessageLookupByLibrary.simpleMessage("Custom text"),
"localization_info_enabled": m34,
"localization_info_incompatible_translation_params_warning":
MessageLookupByLibrary.simpleMessage(
@ -610,8 +600,6 @@ class MessageLookup extends MessageLookupByLibrary {
"localization_info_machine_translation_warning":
MessageLookupByLibrary.simpleMessage(
"You are using the game built -in text. The official text is currently a machine translation (as of 3.21.0), and it is recommended that you install community Localization below."),
"localization_info_no_custom_text":
MessageLookupByLibrary.simpleMessage("No custom text"),
"localization_info_no_translation_available":
MessageLookupByLibrary.simpleMessage(
"This language/version is not available for Localization, so stay tuned!"),
@ -705,13 +693,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_delete_local_account_warning":
MessageLookupByLibrary.simpleMessage(
"This will delete local account records, or it will automatically fill in the next time the game starts the game to disable automatic filling."),
"setting_action_info_device_support_info": m43,
"setting_action_info_disabled":
MessageLookupByLibrary.simpleMessage("Disabled"),
"setting_action_info_enabled":
MessageLookupByLibrary.simpleMessage("Activated"),
"setting_action_info_encrypted_saved":
MessageLookupByLibrary.simpleMessage("Has been encrypted"),
"setting_action_info_enter_cpu_core_to_ignore":
MessageLookupByLibrary.simpleMessage(
"Please enter the core number of CPUs to be ignored"),
@ -729,10 +710,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_mirror_server_info":
MessageLookupByLibrary.simpleMessage(
"Use a mirror server to accelerate access to tool websites such as DPS UEX. If you access abnormal access, please turn off the function. To protect the security of the account, the RSI official website will not be accelerated in any case."),
"setting_action_info_not_saved":
MessageLookupByLibrary.simpleMessage("Not preserved"),
"setting_action_info_not_support":
MessageLookupByLibrary.simpleMessage("Not support"),
"setting_action_info_select_game_install_location":
MessageLookupByLibrary.simpleMessage(
"Please select the game installation position (StarCitizen.exe)"),
@ -744,14 +721,12 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_shortcut_created":
MessageLookupByLibrary.simpleMessage(
"After the creation, please return to the desktop to view"),
"setting_action_info_support":
MessageLookupByLibrary.simpleMessage("Support"),
"setting_action_info_view_log_file": MessageLookupByLibrary.simpleMessage(
"Check the log file of the SCToolBox to locate the bug of the box"),
"setting_action_reset_auto_password_fill":
MessageLookupByLibrary.simpleMessage(
"Reset automatic password filling"),
"setting_action_set_core_count": m44,
"setting_action_set_core_count": m43,
"setting_action_set_game_file": MessageLookupByLibrary.simpleMessage(
"Set the game file (StarCitizen.exe)"),
"setting_action_set_launcher_file":
@ -779,13 +754,13 @@ class MessageLookup extends MessageLookupByLibrary {
"Hosts acceleration (experimental)"),
"tools_action_info_cleanup_complete": MessageLookupByLibrary.simpleMessage(
"After cleaning up, complete the installation / game startup operation once."),
"tools_action_info_cleanup_failed": m45,
"tools_action_info_cleanup_failed": m44,
"tools_action_info_config_file_not_exist":
MessageLookupByLibrary.simpleMessage(
"The configuration file does not exist, please try to run the game once"),
"tools_action_info_eac_file_removed": MessageLookupByLibrary.simpleMessage(
"Remove the EAC file for you, and then open the RSI startup for you. Please go to Settings-> Verify to reinstall EAC."),
"tools_action_info_error_occurred": m46,
"tools_action_info_error_occurred": m45,
"tools_action_info_fix_success_restart":
MessageLookupByLibrary.simpleMessage(
"If the repair is successful, please try to restart the computer and continue to install the game! If the registry modification operation causes compatibility problems with other software, please use the NVMe registry in the tool to clean up."),
@ -795,7 +770,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_hosts_acceleration_experimental_tip":
MessageLookupByLibrary.simpleMessage(
"Write the IP information into the hosts file to solve problems such as DNS pollution in some regions that cannot log in to the official website.\nThis function is undergoing the first stage of testing. Please report it in time when you encounter problems."),
"tools_action_info_init_failed": m47,
"tools_action_info_init_failed": m46,
"tools_action_info_log_file_not_exist":
MessageLookupByLibrary.simpleMessage(
"The log file does not exist, please try to start a game startup or game installation, and exit the starter. If the problem cannot be solved, try to update the launcher to the latest version!"),
@ -806,7 +781,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Manually write the NVM patch, this function is used only when you know what you do"),
"tools_action_info_not_installed":
MessageLookupByLibrary.simpleMessage("Not Installed"),
"tools_action_info_nvme_patch_issue": m48,
"tools_action_info_nvme_patch_issue": m47,
"tools_action_info_one_key_close_lens_shake":
MessageLookupByLibrary.simpleMessage(
"Close the game endoscope shaking to facilitate photography operations.\n\n @Lapernum offers parameter information."),
@ -830,7 +805,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_rsi_launcher_directory_not_found":
MessageLookupByLibrary.simpleMessage(
"If the RSI starter directory is not found, please try manually."),
"tools_action_info_rsi_launcher_log_issue": m49,
"tools_action_info_rsi_launcher_log_issue": m48,
"tools_action_info_rsi_launcher_not_found":
MessageLookupByLibrary.simpleMessage(
"If the RSI label is not found, try to reinstall it or add it manually in the settings."),
@ -839,11 +814,11 @@ class MessageLookup extends MessageLookupByLibrary {
"The RSI starter is running! Please turn off the label first and then use this feature!"),
"tools_action_info_run_rsi_as_admin": MessageLookupByLibrary.simpleMessage(
"Run RSI startups as an administrator may solve some problems.\n\nIf the energy efficiency core shielding parameters are set, it will also be applied here."),
"tools_action_info_shader_cache_issue": m50,
"tools_action_info_shader_cache_issue": m49,
"tools_action_info_star_citizen_not_found":
MessageLookupByLibrary.simpleMessage(
"If the interstellar game installation location is not found, please complete the game startup operation at least once or add it manually in the settings."),
"tools_action_info_system_info_content": m51,
"tools_action_info_system_info_content": m50,
"tools_action_info_system_info_title":
MessageLookupByLibrary.simpleMessage("System message"),
"tools_action_info_valid_game_directory_needed":
@ -901,7 +876,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_info_game_install_location":
MessageLookupByLibrary.simpleMessage(
"Game installation location: "),
"tools_info_processing_failed": m52,
"tools_info_processing_failed": m51,
"tools_info_rsi_launcher_location":
MessageLookupByLibrary.simpleMessage("RSI starter position:"),
"tools_info_scanning":

View File

@ -110,31 +110,28 @@ class MessageLookup extends MessageLookupByLibrary {
static String m42(v0) => "缓存大小 ${v0}MB清理盒子下载的汉化文件缓存不会影响已安装的汉化";
static String m43(v0, v1, v2, v3) =>
"启用:${v0} 设备支持:${v1} 邮箱:${v2} 密码:${v3}";
static String m44(v0) =>
static String m43(v0) =>
"已设置的核心数量:${v0} (此功能适用于首页的盒子一键启动 或 工具中的RSI启动器管理员模式当为 0 时不启用此功能 ";
static String m45(v0) => "清理失败,请手动移除,文件位置:${v0}";
static String m44(v0) => "清理失败,请手动移除,文件位置:${v0}";
static String m46(v0) => "出现错误:${v0}";
static String m45(v0) => "出现错误:${v0}";
static String m47(v0) => "初始化失败,请截图报告给开发者。${v0}";
static String m46(v0) => "初始化失败,请截图报告给开发者。${v0}";
static String m48(v0) =>
static String m47(v0) =>
"若您使用 nvme 补丁出现问题,请运行此工具。(可能导致游戏 安装/更新 不可用。)\n\n当前补丁状态:${v0}";
static String m49(v0) =>
static String m48(v0) =>
"在某些情况下 RSI启动器 的 log 文件会损坏,导致无法完成问题扫描,使用此工具清理损坏的 log 文件。\n\n当前日志文件大小:${v0} MB";
static String m50(v0) =>
static String m49(v0) =>
"若游戏画面出现异常或版本更新后可使用本工具清理过期的着色器当大于500M时建议清理 \n\n缓存大小:${v0} MB";
static String m51(v0, v1, v2, v3, v4) =>
static String m50(v0, v1, v2, v3, v4) =>
"系统:${v0}\n\n处理器:${v1}\n\n内存大小:${v2}GB\n\n显卡信息:\n${v3}\n\n硬盘信息:\n${v4}\n\n";
static String m52(v0) => "处理失败!:${v0}";
static String m51(v0) => "处理失败!:${v0}";
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
@ -513,8 +510,6 @@ class MessageLookup extends MessageLookupByLibrary {
"lobby_online_lobby_coming_soon":
MessageLookupByLibrary.simpleMessage("联机大厅,敬请期待 "),
"lobby_survey": MessageLookupByLibrary.simpleMessage("问卷调查。"),
"localization_action_advanced_features":
MessageLookupByLibrary.simpleMessage("高级功能"),
"localization_action_install":
MessageLookupByLibrary.simpleMessage("安装"),
"localization_action_translation_feedback":
@ -527,13 +522,8 @@ class MessageLookup extends MessageLookupByLibrary {
"localization_info_corrupted_file":
MessageLookupByLibrary.simpleMessage("文件受损,请重新下载"),
"localization_info_custom_file": m33,
"localization_info_custom_file_instructions":
MessageLookupByLibrary.simpleMessage(
"即将打开本地化文件夹,请将自定义的 任意名称.ini 文件放入 Customize_ini 文件夹。\n\n添加新文件后未显示请使用右上角刷新按钮。\n\n安装时请确保选择了正确的语言。"),
"localization_info_custom_files":
MessageLookupByLibrary.simpleMessage("自定义文件"),
"localization_info_custom_text":
MessageLookupByLibrary.simpleMessage("自定义文本"),
"localization_info_enabled": m34,
"localization_info_incompatible_translation_params_warning":
MessageLookupByLibrary.simpleMessage(
@ -547,8 +537,6 @@ class MessageLookup extends MessageLookupByLibrary {
"localization_info_machine_translation_warning":
MessageLookupByLibrary.simpleMessage(
"您正在使用游戏内置文本官方文本目前为机器翻译截至3.21.0),建议您在下方安装社区汉化。"),
"localization_info_no_custom_text":
MessageLookupByLibrary.simpleMessage("暂无自定义文本"),
"localization_info_no_translation_available":
MessageLookupByLibrary.simpleMessage("该语言/版本 暂无可用汉化,敬请期待!"),
"localization_info_note": MessageLookupByLibrary.simpleMessage("备注:"),
@ -623,13 +611,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_delete_local_account_warning":
MessageLookupByLibrary.simpleMessage(
"这将会删除本地的账号记录,或在下次启动游戏时将自动填充选择 ‘否’ 以禁用自动填充。"),
"setting_action_info_device_support_info": m43,
"setting_action_info_disabled":
MessageLookupByLibrary.simpleMessage("已禁用"),
"setting_action_info_enabled":
MessageLookupByLibrary.simpleMessage("已启用"),
"setting_action_info_encrypted_saved":
MessageLookupByLibrary.simpleMessage("已加密保存"),
"setting_action_info_enter_cpu_core_to_ignore":
MessageLookupByLibrary.simpleMessage("请输入要忽略的 CPU 核心数"),
"setting_action_info_file_error":
@ -645,10 +626,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_mirror_server_info":
MessageLookupByLibrary.simpleMessage(
"使用镜像服务器加速访问 Dps Uex 等工具网站,若访问异常请关闭该功能。 为保护账户安全任何情况下都不会加速RSI官网。"),
"setting_action_info_not_saved":
MessageLookupByLibrary.simpleMessage("未保存"),
"setting_action_info_not_support":
MessageLookupByLibrary.simpleMessage("不支持"),
"setting_action_info_select_game_install_location":
MessageLookupByLibrary.simpleMessage("请选择游戏安装位置StarCitizen.exe"),
"setting_action_info_select_rsi_launcher_location":
@ -658,13 +635,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("设置成功,在对应页面点击刷新即可扫描出新路径"),
"setting_action_info_shortcut_created":
MessageLookupByLibrary.simpleMessage("创建完毕,请返回桌面查看"),
"setting_action_info_support":
MessageLookupByLibrary.simpleMessage("支持"),
"setting_action_info_view_log_file":
MessageLookupByLibrary.simpleMessage("查看汉化盒子的 log 文件,以定位盒子的 bug"),
"setting_action_reset_auto_password_fill":
MessageLookupByLibrary.simpleMessage("重置自动密码填充"),
"setting_action_set_core_count": m44,
"setting_action_set_core_count": m43,
"setting_action_set_game_file":
MessageLookupByLibrary.simpleMessage("设置游戏文件 StarCitizen.exe"),
"setting_action_set_launcher_file":
@ -686,13 +661,13 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Hosts 加速(实验性)"),
"tools_action_info_cleanup_complete":
MessageLookupByLibrary.simpleMessage("清理完毕,请完成一次安装 / 游戏启动 操作。"),
"tools_action_info_cleanup_failed": m45,
"tools_action_info_cleanup_failed": m44,
"tools_action_info_config_file_not_exist":
MessageLookupByLibrary.simpleMessage("配置文件不存在,请尝试运行一次游戏"),
"tools_action_info_eac_file_removed":
MessageLookupByLibrary.simpleMessage(
"已为您移除 EAC 文件,接下来将为您打开 RSI 启动器,请您前往 SETTINGS -> VERIFY 重装 EAC。"),
"tools_action_info_error_occurred": m46,
"tools_action_info_error_occurred": m45,
"tools_action_info_fix_success_restart":
MessageLookupByLibrary.simpleMessage(
"修复成功,请尝试重启电脑后继续安装游戏! 若注册表修改操作导致其他软件出现兼容问题,请使用 工具 中的 NVME 注册表清理。"),
@ -701,7 +676,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_hosts_acceleration_experimental_tip":
MessageLookupByLibrary.simpleMessage(
"将 IP 信息写入 Hosts 文件,解决部分地区的 DNS 污染导致无法登录官网等问题。\n该功能正在进行第一阶段测试,遇到问题请及时反馈。"),
"tools_action_info_init_failed": m47,
"tools_action_info_init_failed": m46,
"tools_action_info_log_file_not_exist":
MessageLookupByLibrary.simpleMessage(
"日志文件不存在,请尝试进行一次游戏启动或游戏安装,并退出启动器,若无法解决问题,请尝试将启动器更新至最新版本!"),
@ -713,7 +688,7 @@ class MessageLookup extends MessageLookupByLibrary {
"手动写入NVM补丁该功能仅在您知道自己在作什么的情况下使用"),
"tools_action_info_not_installed":
MessageLookupByLibrary.simpleMessage("未安装"),
"tools_action_info_nvme_patch_issue": m48,
"tools_action_info_nvme_patch_issue": m47,
"tools_action_info_one_key_close_lens_shake":
MessageLookupByLibrary.simpleMessage(
"一键关闭游戏内镜头晃动以便于摄影操作。\n\n @拉邦那 Lapernum 提供参数信息。"),
@ -735,7 +710,7 @@ class MessageLookup extends MessageLookupByLibrary {
"还原镜头摇晃效果。\n\n@拉邦那 Lapernum 提供参数信息。"),
"tools_action_info_rsi_launcher_directory_not_found":
MessageLookupByLibrary.simpleMessage("未找到 RSI 启动器目录,请您尝试手动操作。"),
"tools_action_info_rsi_launcher_log_issue": m49,
"tools_action_info_rsi_launcher_log_issue": m48,
"tools_action_info_rsi_launcher_not_found":
MessageLookupByLibrary.simpleMessage(
"未找到 RSI 启动器,请尝试重新安装,或在设置中手动添加。"),
@ -744,11 +719,11 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_run_rsi_as_admin":
MessageLookupByLibrary.simpleMessage(
"以管理员身份运行RSI启动器可能会解决一些问题。\n\n若设置了能效核心屏蔽参数,也会在此应用。"),
"tools_action_info_shader_cache_issue": m50,
"tools_action_info_shader_cache_issue": m49,
"tools_action_info_star_citizen_not_found":
MessageLookupByLibrary.simpleMessage(
"未找到星际公民游戏安装位置,请至少完成一次游戏启动操作 或在设置中手动添加。"),
"tools_action_info_system_info_content": m51,
"tools_action_info_system_info_content": m50,
"tools_action_info_system_info_title":
MessageLookupByLibrary.simpleMessage("系统信息"),
"tools_action_info_valid_game_directory_needed":
@ -795,7 +770,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("正在写入 Hosts ..."),
"tools_info_game_install_location":
MessageLookupByLibrary.simpleMessage("游戏安装位置: "),
"tools_info_processing_failed": m52,
"tools_info_processing_failed": m51,
"tools_info_rsi_launcher_location":
MessageLookupByLibrary.simpleMessage("RSI启动器位置"),
"tools_info_scanning": MessageLookupByLibrary.simpleMessage("正在扫描..."),

View File

@ -110,31 +110,28 @@ class MessageLookup extends MessageLookupByLibrary {
static String m42(v0) => "快取大小 ${v0}MB清除盒子下載的翻譯文件快取不會影響已安裝的翻譯";
static String m43(v0, v1, v2, v3) =>
"啟用:${v0} 設備支援:${v1} 郵箱:${v2} 密碼:${v3}";
static String m44(v0) =>
static String m43(v0) =>
"已設置的核心數量:${v0} (此功能適用於首頁的盒子快速啟動 或 工具中的RSI啟動器管理員模式當為 0 時不啟用此功能 ";
static String m45(v0) => "清理失敗,請手動移除,文件位置:${v0}";
static String m44(v0) => "清理失敗,請手動移除,文件位置:${v0}";
static String m46(v0) => "出現錯誤:${v0}";
static String m45(v0) => "出現錯誤:${v0}";
static String m47(v0) => "初始化失敗,請截圖回報給開發者。${v0}";
static String m46(v0) => "初始化失敗,請截圖回報給開發者。${v0}";
static String m48(v0) =>
static String m47(v0) =>
"若您使用 nvme 補丁出現問題,請執行此工具。(可能導致遊戲 安裝/更新 不可用。)\n\n當前補丁狀態:${v0}";
static String m49(v0) =>
static String m48(v0) =>
"在某些情況下 RSI啟動器 的 log 文件會損壞,導致無法完成問題掃描,使用此工具清除損壞的 log 文件。\n\n當前日誌文件大小:${v0} MB";
static String m50(v0) =>
static String m49(v0) =>
"若遊戲畫面出現異常或版本更新後可使用本工具清除過期的著色器快取當大於500M時建議清理 \n\n快取大小:${v0} MB";
static String m51(v0, v1, v2, v3, v4) =>
static String m50(v0, v1, v2, v3, v4) =>
"系統:${v0}\n\n處理器:${v1}\n\n記憶體大小:${v2}GB\n\n顯示卡資訊:\n${v3}\n\n硬碟資訊:\n${v4}\n\n";
static String m52(v0) => "處理失敗!:${v0}";
static String m51(v0) => "處理失敗!:${v0}";
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
@ -513,8 +510,6 @@ class MessageLookup extends MessageLookupByLibrary {
"lobby_online_lobby_coming_soon":
MessageLookupByLibrary.simpleMessage("聯機大廳,敬請期待 "),
"lobby_survey": MessageLookupByLibrary.simpleMessage("問卷調查。"),
"localization_action_advanced_features":
MessageLookupByLibrary.simpleMessage("進階功能"),
"localization_action_install":
MessageLookupByLibrary.simpleMessage("安裝"),
"localization_action_translation_feedback":
@ -527,13 +522,8 @@ class MessageLookup extends MessageLookupByLibrary {
"localization_info_corrupted_file":
MessageLookupByLibrary.simpleMessage("文件受損,請重新下載"),
"localization_info_custom_file": m33,
"localization_info_custom_file_instructions":
MessageLookupByLibrary.simpleMessage(
"即將打開本地化資料夾,請將自訂的 任意名稱.ini 文件放入 Customize_ini 資料夾。\n\n新增新文件後未顯示請使用右上角刷新按鈕。\n\n安裝時請確保選擇了正確的語言。"),
"localization_info_custom_files":
MessageLookupByLibrary.simpleMessage("自訂文件"),
"localization_info_custom_text":
MessageLookupByLibrary.simpleMessage("自訂翻譯文件"),
"localization_info_enabled": m34,
"localization_info_incompatible_translation_params_warning":
MessageLookupByLibrary.simpleMessage(
@ -547,8 +537,6 @@ class MessageLookup extends MessageLookupByLibrary {
"localization_info_machine_translation_warning":
MessageLookupByLibrary.simpleMessage(
"您正在使用遊戲內建文本官方文本目前為機器翻譯截至3.21.0),建議您在下方安裝社群翻譯。"),
"localization_info_no_custom_text":
MessageLookupByLibrary.simpleMessage("暫無自訂翻譯文件"),
"localization_info_no_translation_available":
MessageLookupByLibrary.simpleMessage("該語言/版本 暫時沒有可用翻譯,敬請期待!"),
"localization_info_note": MessageLookupByLibrary.simpleMessage("備註:"),
@ -623,13 +611,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_delete_local_account_warning":
MessageLookupByLibrary.simpleMessage(
"這將會刪除本地的帳號記錄,或在下次啟動遊戲時將自動輸入選擇 ‘否’ 以停用自動輸入。"),
"setting_action_info_device_support_info": m43,
"setting_action_info_disabled":
MessageLookupByLibrary.simpleMessage("已停用"),
"setting_action_info_enabled":
MessageLookupByLibrary.simpleMessage("已啟用"),
"setting_action_info_encrypted_saved":
MessageLookupByLibrary.simpleMessage("已加密保存"),
"setting_action_info_enter_cpu_core_to_ignore":
MessageLookupByLibrary.simpleMessage("請輸入要忽略的 CPU 核心數"),
"setting_action_info_file_error":
@ -644,10 +625,6 @@ class MessageLookup extends MessageLookupByLibrary {
"setting_action_info_mirror_server_info":
MessageLookupByLibrary.simpleMessage(
"使用鏡像伺服器加速瀏覽 DPS、UEX 等工具網站,若出現異常請關閉此功能。(RSI 官方網站除外)"),
"setting_action_info_not_saved":
MessageLookupByLibrary.simpleMessage("未保存"),
"setting_action_info_not_support":
MessageLookupByLibrary.simpleMessage("不支援"),
"setting_action_info_select_game_install_location":
MessageLookupByLibrary.simpleMessage("請選擇遊戲安裝位置StarCitizen.exe"),
"setting_action_info_select_rsi_launcher_location":
@ -657,13 +634,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("設置成功,在對應頁面點擊重新整理即可掃描出新路徑"),
"setting_action_info_shortcut_created":
MessageLookupByLibrary.simpleMessage("新增完畢,請返回桌面查看"),
"setting_action_info_support":
MessageLookupByLibrary.simpleMessage("支援"),
"setting_action_info_view_log_file":
MessageLookupByLibrary.simpleMessage("查看漢化盒子的 log 文件,用於定位盒子的 Bug"),
"setting_action_reset_auto_password_fill":
MessageLookupByLibrary.simpleMessage("重置自動密碼輸入"),
"setting_action_set_core_count": m44,
"setting_action_set_core_count": m43,
"setting_action_set_game_file":
MessageLookupByLibrary.simpleMessage("更改遊戲文件 StarCitizen.exe"),
"setting_action_set_launcher_file":
@ -685,12 +660,12 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Hosts 加速(實驗性)"),
"tools_action_info_cleanup_complete":
MessageLookupByLibrary.simpleMessage("清理完畢,請完成一次安裝 / 遊戲啟動 操作。"),
"tools_action_info_cleanup_failed": m45,
"tools_action_info_cleanup_failed": m44,
"tools_action_info_config_file_not_exist":
MessageLookupByLibrary.simpleMessage("配置文件不存在,請嘗試運行一次遊戲"),
"tools_action_info_eac_file_removed": MessageLookupByLibrary.simpleMessage(
"已為您移除 EAC 文件,接下來將為您打開 RSI 啟動器,請您前往 SETTINGS -> VERIFY 重新安裝 EAC。"),
"tools_action_info_error_occurred": m46,
"tools_action_info_error_occurred": m45,
"tools_action_info_fix_success_restart":
MessageLookupByLibrary.simpleMessage(
"修復成功,請嘗試重啟電腦後繼續安裝遊戲! 若註冊表修改操作導致其他軟體出現相容問題,請使用 工具 中的 NVME 註冊表清理。"),
@ -699,7 +674,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_hosts_acceleration_experimental_tip":
MessageLookupByLibrary.simpleMessage(
"將 IP 信息寫入 Hosts 文件,解決部分地區的 DNS 汙染導致無法登錄官網等問題。\n該功能正在進行第一階段測試,遇到問題請及時反饋。"),
"tools_action_info_init_failed": m47,
"tools_action_info_init_failed": m46,
"tools_action_info_log_file_not_exist":
MessageLookupByLibrary.simpleMessage(
"日誌文件不存在,請嘗試進行一次遊戲啟動或遊戲安裝,並退出啟動器,若無法解決問題,請嘗試將啟動器更新至最新版本!"),
@ -711,7 +686,7 @@ class MessageLookup extends MessageLookupByLibrary {
"手動寫入NVME補丁該功能僅在您知道自己在做什麼的情況下使用"),
"tools_action_info_not_installed":
MessageLookupByLibrary.simpleMessage("未安裝"),
"tools_action_info_nvme_patch_issue": m48,
"tools_action_info_nvme_patch_issue": m47,
"tools_action_info_one_key_close_lens_shake":
MessageLookupByLibrary.simpleMessage(
"一鍵關閉遊戲內鏡頭晃動以便於攝影操作。\n\n @拉邦那 Lapernum 提供參數信息。"),
@ -733,7 +708,7 @@ class MessageLookup extends MessageLookupByLibrary {
"還原鏡頭搖晃效果。\n\n@拉邦那 Lapernum 提供參數信息。"),
"tools_action_info_rsi_launcher_directory_not_found":
MessageLookupByLibrary.simpleMessage("未找到 RSI 啟動器目錄,請您嘗試手動操作。"),
"tools_action_info_rsi_launcher_log_issue": m49,
"tools_action_info_rsi_launcher_log_issue": m48,
"tools_action_info_rsi_launcher_not_found":
MessageLookupByLibrary.simpleMessage(
"未找到 RSI 啟動器,請嘗試重新安裝,或在設置中手動添加。"),
@ -742,11 +717,11 @@ class MessageLookup extends MessageLookupByLibrary {
"tools_action_info_run_rsi_as_admin":
MessageLookupByLibrary.simpleMessage(
"以管理員身份執行RSI啟動器可能會解決一些問題。\n\n若設置了能效核心忽略參數,也會在此套用。"),
"tools_action_info_shader_cache_issue": m50,
"tools_action_info_shader_cache_issue": m49,
"tools_action_info_star_citizen_not_found":
MessageLookupByLibrary.simpleMessage(
"未找到星際公民遊戲安裝位置,請至少完成一次遊戲啟動操作 或在設置中手動新增。"),
"tools_action_info_system_info_content": m51,
"tools_action_info_system_info_content": m50,
"tools_action_info_system_info_title":
MessageLookupByLibrary.simpleMessage("系統資訊"),
"tools_action_info_valid_game_directory_needed":
@ -793,7 +768,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("正在寫入 Hosts ..."),
"tools_info_game_install_location":
MessageLookupByLibrary.simpleMessage("遊戲安裝位置: "),
"tools_info_processing_failed": m52,
"tools_info_processing_failed": m51,
"tools_info_rsi_launcher_location":
MessageLookupByLibrary.simpleMessage("RSI啟動器位置"),
"tools_info_scanning": MessageLookupByLibrary.simpleMessage("正在掃描..."),

View File

@ -1741,36 +1741,6 @@ class S {
);
}
/// `Advanced Features`
String get localization_action_advanced_features {
return Intl.message(
'Advanced Features',
name: 'localization_action_advanced_features',
desc: '',
args: [],
);
}
/// `Custom text`
String get localization_info_custom_text {
return Intl.message(
'Custom text',
name: 'localization_info_custom_text',
desc: '',
args: [],
);
}
/// `No custom text`
String get localization_info_no_custom_text {
return Intl.message(
'No custom text',
name: 'localization_info_no_custom_text',
desc: '',
args: [],
);
}
/// `Install`
String get localization_action_install {
return Intl.message(
@ -1871,16 +1841,6 @@ class S {
);
}
/// `To open the localized folder, put the customized name .ini file in the Customize_ini folder.\n\nAfter adding a new file, you do not display the refresh button in the upper right corner.\n\nPlease make sure to choose the correct language during installation.`
String get localization_info_custom_file_instructions {
return Intl.message(
'To open the localized folder, put the customized name .ini file in the Customize_ini folder.\n\nAfter adding a new file, you do not display the refresh button in the upper right corner.\n\nPlease make sure to choose the correct language during installation.',
name: 'localization_info_custom_file_instructions',
desc: '',
args: [],
);
}
/// `The file is damaged, please download again`
String get localization_info_corrupted_file {
return Intl.message(
@ -2261,77 +2221,6 @@ class S {
);
}
/// `Enable: {v0} Device Support: {v1} Email: {v2} Password: {v3}`
String setting_action_info_device_support_info(
Object v0, Object v1, Object v2, Object v3) {
return Intl.message(
'Enable: $v0 Device Support: $v1 Email: $v2 Password: $v3',
name: 'setting_action_info_device_support_info',
desc: '',
args: [v0, v1, v2, v3],
);
}
/// `Activated`
String get setting_action_info_enabled {
return Intl.message(
'Activated',
name: 'setting_action_info_enabled',
desc: '',
args: [],
);
}
/// `Disabled`
String get setting_action_info_disabled {
return Intl.message(
'Disabled',
name: 'setting_action_info_disabled',
desc: '',
args: [],
);
}
/// `Support`
String get setting_action_info_support {
return Intl.message(
'Support',
name: 'setting_action_info_support',
desc: '',
args: [],
);
}
/// `Not support`
String get setting_action_info_not_support {
return Intl.message(
'Not support',
name: 'setting_action_info_not_support',
desc: '',
args: [],
);
}
/// `Has been encrypted`
String get setting_action_info_encrypted_saved {
return Intl.message(
'Has been encrypted',
name: 'setting_action_info_encrypted_saved',
desc: '',
args: [],
);
}
/// `Not preserved`
String get setting_action_info_not_saved {
return Intl.message(
'Not preserved',
name: 'setting_action_info_not_saved',
desc: '',
args: [],
);
}
/// `When starting the game, ignore the core of energy efficiency (suitable for Intel 12th+ processor)`
String get setting_action_ignore_efficiency_cores_on_launch {
return Intl.message(

View File

@ -339,11 +339,6 @@
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "This language/version is not available for Localization, so stay tuned!",
"@localization_info_no_translation_available": {},
"localization_action_advanced_features": "Advanced Features",
"@localization_action_advanced_features": {},
"localization_info_custom_text": "Custom text",
"@localization_info_custom_text": {},
"localization_info_no_custom_text": "No custom text",
"@localization_info_no_custom_text": {},
"localization_action_install": "Install",
"@localization_action_install": {},
@ -365,8 +360,6 @@
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_custom_file": "Custom_ {v0}",
"@localization_info_custom_file": {},
"localization_info_custom_file_instructions": "To open the localized folder, put the customized name .ini file in the Customize_ini folder.\n\nAfter adding a new file, you do not display the refresh button in the upper right corner.\n\nPlease make sure to choose the correct language during installation.",
"@localization_info_custom_file_instructions": {},
"localization_info_corrupted_file": "The file is damaged, please download again",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "Install an error!\n\n {v0}",
@ -443,20 +436,6 @@
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "Reset automatic password filling",
"@setting_action_reset_auto_password_fill": {},
"setting_action_info_device_support_info": "Enable: {v0} Device Support: {v1} Email: {v2} Password: {v3}",
"@setting_action_info_device_support_info": {},
"setting_action_info_enabled": "Activated",
"@setting_action_info_enabled": {},
"setting_action_info_disabled": "Disabled",
"@setting_action_info_disabled": {},
"setting_action_info_support": "Support",
"@setting_action_info_support": {},
"setting_action_info_not_support": "Not support",
"@setting_action_info_not_support": {},
"setting_action_info_encrypted_saved": "Has been encrypted",
"@setting_action_info_encrypted_saved": {},
"setting_action_info_not_saved": "Not preserved",
"@setting_action_info_not_saved": {},
"setting_action_ignore_efficiency_cores_on_launch": "When starting the game, ignore the core of energy efficiency (suitable for Intel 12th+ processor)",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "Core quantity that has been set: {v0} (This function is suitable for the box -click startup or RSI starter manager mode on the homepage, which is not enabled when it is 0)",

View File

@ -338,12 +338,6 @@
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "该语言/版本 暂无可用汉化,敬请期待!",
"@localization_info_no_translation_available": {},
"localization_action_advanced_features": "高级功能",
"@localization_action_advanced_features": {},
"localization_info_custom_text": "自定义文本",
"@localization_info_custom_text": {},
"localization_info_no_custom_text": "暂无自定义文本",
"@localization_info_no_custom_text": {},
"localization_action_install": "安装",
"@localization_action_install": {},
"localization_info_version_number": "版本号:{v0}",
@ -364,8 +358,6 @@
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_custom_file": "自定义_{v0}",
"@localization_info_custom_file": {},
"localization_info_custom_file_instructions": "即将打开本地化文件夹,请将自定义的 任意名称.ini 文件放入 Customize_ini 文件夹。\n\n添加新文件后未显示请使用右上角刷新按钮。\n\n安装时请确保选择了正确的语言。",
"@localization_info_custom_file_instructions": {},
"localization_info_corrupted_file": "文件受损,请重新下载",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "安装出错!\n\n {v0}",
@ -442,20 +434,6 @@
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "重置自动密码填充",
"@setting_action_reset_auto_password_fill": {},
"setting_action_info_device_support_info": "启用:{v0} 设备支持:{v1} 邮箱:{v2} 密码:{v3}",
"@setting_action_info_device_support_info": {},
"setting_action_info_enabled": "已启用",
"@setting_action_info_enabled": {},
"setting_action_info_disabled": "已禁用",
"@setting_action_info_disabled": {},
"setting_action_info_support": "支持",
"@setting_action_info_support": {},
"setting_action_info_not_support": "不支持",
"@setting_action_info_not_support": {},
"setting_action_info_encrypted_saved": "已加密保存",
"@setting_action_info_encrypted_saved": {},
"setting_action_info_not_saved": "未保存",
"@setting_action_info_not_saved": {},
"setting_action_ignore_efficiency_cores_on_launch": "启动游戏时忽略能效核心( 适用于Intel 12th+ 处理器 ",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "已设置的核心数量:{v0} (此功能适用于首页的盒子一键启动 或 工具中的RSI启动器管理员模式当为 0 时不启用此功能 ",

View File

@ -339,12 +339,6 @@
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "該語言/版本 暫時沒有可用翻譯,敬請期待!",
"@localization_info_no_translation_available": {},
"localization_action_advanced_features": "進階功能",
"@localization_action_advanced_features": {},
"localization_info_custom_text": "自訂翻譯文件",
"@localization_info_custom_text": {},
"localization_info_no_custom_text": "暫無自訂翻譯文件",
"@localization_info_no_custom_text": {},
"localization_action_install": "安裝",
"@localization_action_install": {},
"localization_info_version_number": "版本號:{v0}",
@ -365,8 +359,6 @@
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_custom_file": "自訂_{v0}",
"@localization_info_custom_file": {},
"localization_info_custom_file_instructions": "即將打開本地化資料夾,請將自訂的 任意名稱.ini 文件放入 Customize_ini 資料夾。\n\n新增新文件後未顯示請使用右上角刷新按鈕。\n\n安裝時請確保選擇了正確的語言。",
"@localization_info_custom_file_instructions": {},
"localization_info_corrupted_file": "文件受損,請重新下載",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "安裝出錯!\n\n {v0}",
@ -443,20 +435,6 @@
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "重置自動密碼輸入",
"@setting_action_reset_auto_password_fill": {},
"setting_action_info_device_support_info": "啟用:{v0} 設備支援:{v1} 郵箱:{v2} 密碼:{v3}",
"@setting_action_info_device_support_info": {},
"setting_action_info_enabled": "已啟用",
"@setting_action_info_enabled": {},
"setting_action_info_disabled": "已停用",
"@setting_action_info_disabled": {},
"setting_action_info_support": "支援",
"@setting_action_info_support": {},
"setting_action_info_not_support": "不支援",
"@setting_action_info_not_support": {},
"setting_action_info_encrypted_saved": "已加密保存",
"@setting_action_info_encrypted_saved": {},
"setting_action_info_not_saved": "未保存",
"@setting_action_info_not_saved": {},
"setting_action_ignore_efficiency_cores_on_launch": "啟動遊戲時忽略 E-Core (適用於Intel 12th+ 處理器)",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "已設置的核心數量:{v0} (此功能適用於首頁的盒子快速啟動 或 工具中的RSI啟動器管理員模式當為 0 時不啟用此功能 ",

View File

@ -180,89 +180,6 @@ class LocalizationDialogUI extends HookConsumerWidget {
],
context),
const SizedBox(height: 12),
IconButton(
icon: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(state.enableCustomize
? FluentIcons.chevron_up
: FluentIcons.chevron_down),
const SizedBox(width: 12),
Text(S.current.localization_action_advanced_features),
],
),
onPressed: model.toggleCustomize),
AnimatedSize(
duration: const Duration(milliseconds: 130),
child: Column(
children: [
const SizedBox(height: 12),
state.enableCustomize
? makeListContainer(
S.current.localization_info_custom_text,
[
if (state.customizeList == null)
makeLoading(context)
else if (state.customizeList!.isEmpty)
Center(
child: Text(
S.current.localization_info_no_custom_text,
style: TextStyle(
fontSize: 13,
color: Colors.white.withOpacity(.8)),
),
)
else ...[
for (final file in state.customizeList!)
Row(
children: [
Text(
model.getCustomizeFileName(file),
),
const Spacer(),
if (state.workingVersion == file)
const Padding(
padding: EdgeInsets.only(right: 12),
child: ProgressRing(),
)
else
Button(
onPressed:
model.doLocalInstall(file),
child: Padding(
padding: const EdgeInsets.only(
left: 8,
right: 8,
top: 4,
bottom: 4),
child: Text(S.current
.localization_action_install),
))
],
)
],
],
context,
actions: [
Button(
onPressed: () => model.openDir(context),
child: Padding(
padding: const EdgeInsets.all(4),
child: Row(
children: [
const Icon(FluentIcons.folder_open),
const SizedBox(width: 6),
Text(S.current.action_open_folder),
],
),
)),
])
: SizedBox(
width: MediaQuery.of(context).size.width,
)
],
),
),
],
),
),

View File

@ -12,7 +12,6 @@ import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/api/api.dart';
import 'package:starcitizen_doctor/common/conf/const_conf.dart';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/common/utils/provider.dart';
@ -49,9 +48,6 @@ class LocalizationUIModel extends _$LocalizationUIModel {
Directory get _downloadDir =>
Directory("${appGlobalState.applicationSupportDir}\\Localizations");
Directory get _customizeDir =>
Directory("${_downloadDir.absolute.path}\\Customize_ini");
Directory get _scDataDir =>
Directory("${ref.read(homeUIModelProvider).scInstalledPath}\\data");
@ -72,12 +68,6 @@ class LocalizationUIModel extends _$LocalizationUIModel {
if (_scInstallPath == "not_install") {
return;
}
if (!_customizeDir.existsSync()) {
await _customizeDir.create(recursive: true);
}
_customizeDirListenSub = _customizeDir.watch().listen((event) {
_scanCustomizeDir();
});
ref.onDispose(() {
_customizeDirListenSub?.cancel();
_customizeDirListenSub = null;
@ -106,7 +96,6 @@ class LocalizationUIModel extends _$LocalizationUIModel {
Future<void> _loadData() async {
_allVersionLocalizationData.clear();
await _updateStatus();
_scanCustomizeDir();
for (var lang in languageSupport.keys) {
final l = await Api.getScLocalizationData(lang).unwrap();
if (l != null) {
@ -275,11 +264,6 @@ class LocalizationUIModel extends _$LocalizationUIModel {
await _updateStatus();
}
openDir(BuildContext context) async {
showToast(context, S.current.localization_info_custom_file_instructions);
SystemHelper.openDir(_customizeDir.absolute.path);
}
VoidCallback? doRemoteInstall(
BuildContext context, ScLocalizationData value) {
return () async {
@ -363,17 +347,6 @@ class LocalizationUIModel extends _$LocalizationUIModel {
};
}
void _scanCustomizeDir() {
final fileList = _customizeDir.listSync();
final customizeList = <String>[];
for (var value in fileList) {
if (value is File && value.path.endsWith(".ini")) {
customizeList.add(value.absolute.path);
}
}
state = state.copyWith(customizeList: customizeList);
}
_updateStatus() async {
final patchStatus = MapEntry(
await _getLangCfgEnableLang(lang: state.selectedLanguage!),