@@ -710,7 +710,40 @@ def utilities(self):
710710 "Less than a minute " :"Less than a minute " ,
711711 "Disabling Idle Sleep" :"Disabling Idle Sleep" ,
712712 "Re-enabling Idle Sleep" :"Re-enabling Idle Sleep" ,
713- "Killing Process: {0} - {1}" :"Killing Process: {0} - {1}"
713+ "Killing Process: {0} - {1}" :"Killing Process: {0} - {1}" ,
714+ # dmg_mount.py
715+ "- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" :"- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" ,
716+ "- Failed to mount Universal-Binaries.dmg" :"- Failed to mount Universal-Binaries.dmg" ,
717+ "- Mounted Universal-Binaries.dmg" :"- Mounted Universal-Binaries.dmg" ,
718+ "- Found HackdocInternal resources, mounting..." :"- Found HackdocInternal resources, mounting..." ,
719+ "- Failed to mount HackdocInternal resources" :"- Failed to mount HackdocInternal resources" ,
720+ "- Mounted HackdocInternal resources" :"- Mounted HackdocInternal resources" ,
721+ "- Failed to merge HackdocInternal resources" :"- Failed to merge HackdocInternal resources" ,
722+ "- Local PatcherSupportPkg resources available, continuing..." :"- Local PatcherSupportPkg resources available, continuing..." ,
723+
724+ # files.py
725+ " - Skipping {file_name}, cannot locate {source_folder}" :" - Skipping {file_name}, cannot locate {source_folder}" ,
726+ " - Installing: {file_name}" :" - Installing: {file_name}" ,
727+ " - Found existing {file_name}, overwriting..." :" - Found existing {file_name}, overwriting..." ,
728+ " - Removing: {file_name}" :" - Removing: {file_name}" ,
729+
730+ # kdk_merge.py
731+ "- Matching KDK determined to already be merged, skipping" :"- Matching KDK determined to already be merged, skipping" ,
732+ "- Backing up IOHIDEventDriver CodeSignature" :"- Backing up IOHIDEventDriver CodeSignature" ,
733+ "- Restoring IOHIDEventDriver CodeSignature" :"- Restoring IOHIDEventDriver CodeSignature" ,
734+ " - CodeSignature folder missing, creating" :" - CodeSignature folder missing, creating" ,
735+ "- Merging KDK with Root Volume: {kdk_name}" :"- Merging KDK with Root Volume: {kdk_name}" ,
736+ "- Failed to merge KDK with Root Volume" :"- Failed to merge KDK with Root Volume" ,
737+ "- Successfully merged KDK with Root Volume" :"- Successfully merged KDK with Root Volume" ,
738+ "Failed to install KDK" :"Failed to install KDK" ,
739+ "Unable to get KDK info: {error_msg}" :"Unable to get KDK info: {error_msg}" ,
740+ "Could not retrieve KDK: {error_msg}" :"Could not retrieve KDK: {error_msg}" ,
741+ "Could not download KDK: {error_msg}" :"Could not download KDK: {error_msg}" ,
742+ "KDK checksum validation failed: {error_msg}" :"KDK checksum validation failed: {error_msg}" ,
743+ "KDK was not installed, but should have been: {error_msg}" :"KDK was not installed, but should have been: {error_msg}" ,
744+ "Unable to find Kernel Debug Kit" :"Unable to find Kernel Debug Kit" ,
745+ "- Unable to find Kernel Debug Kit" :"- Unable to find Kernel Debug Kit" ,
746+ "- Found KDK at: {kdk_path}" :"- Found KDK at: {kdk_path}"
714747 }
715748 elif self .language_point == "简体中文" :
716749 trans = {
@@ -721,7 +754,40 @@ def utilities(self):
721754 "Less than a minute " :"不到一分钟 " ,
722755 "Disabling Idle Sleep" :"正在禁用休眠" ,
723756 "Re-enabling Idle Sleep" :"正在重新启用休眠" ,
724- "Killing Process: {0} - {1}" :"正在终止进程: {0} - {1}"
757+ "Killing Process: {0} - {1}" :"正在终止进程: {0} - {1}" ,
758+ # dmg_mount.py
759+ "- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" :"- PatcherSupportPkg 资源缺失,修补程序可能已损坏!!!" ,
760+ "- Failed to mount Universal-Binaries.dmg" :"- 挂载 Universal-Binaries.dmg 失败" ,
761+ "- Mounted Universal-Binaries.dmg" :"- 已挂载 Universal-Binaries.dmg" ,
762+ "- Found HackdocInternal resources, mounting..." :"- 找到 HackdocInternal 资源,正在挂载..." ,
763+ "- Failed to mount HackdocInternal resources" :"- 挂载 HackdocInternal 资源失败" ,
764+ "- Mounted HackdocInternal resources" :"- 已挂载 HackdocInternal 资源" ,
765+ "- Failed to merge HackdocInternal resources" :"- 合并 HackdocInternal 资源失败" ,
766+ "- Local PatcherSupportPkg resources available, continuing..." :"- 本地 PatcherSupportPkg 资源可用,继续..." ,
767+
768+ # files.py
769+ " - Skipping {file_name}, cannot locate {source_folder}" :" - 跳过 {file_name},无法定位 {source_folder}" ,
770+ " - Installing: {file_name}" :" - 正在安装: {file_name}" ,
771+ " - Found existing {file_name}, overwriting..." :" - 找到现有 {file_name},正在覆盖..." ,
772+ " - Removing: {file_name}" :" - 正在删除: {file_name}" ,
773+
774+ # kdk_merge.py
775+ "- Matching KDK determined to already be merged, skipping" :"- 匹配的 KDK 已确定已合并,跳过" ,
776+ "- Backing up IOHIDEventDriver CodeSignature" :"- 正在备份 IOHIDEventDriver 代码签名" ,
777+ "- Restoring IOHIDEventDriver CodeSignature" :"- 正在恢复 IOHIDEventDriver 代码签名" ,
778+ " - CodeSignature folder missing, creating" :" - 代码签名文件夹缺失,正在创建" ,
779+ "- Merging KDK with Root Volume: {kdk_name}" :"- 正在将 KDK 与根卷合并: {kdk_name}" ,
780+ "- Failed to merge KDK with Root Volume" :"- 将 KDK 与根卷合并失败" ,
781+ "- Successfully merged KDK with Root Volume" :"- 成功将 KDK 与根卷合并" ,
782+ "Failed to install KDK" :"安装 KDK 失败" ,
783+ "Unable to get KDK info: {error_msg}" :"无法获取 KDK 信息: {error_msg}" ,
784+ "Could not retrieve KDK: {error_msg}" :"无法检索 KDK: {error_msg}" ,
785+ "Could not download KDK: {error_msg}" :"无法下载 KDK: {error_msg}" ,
786+ "KDK checksum validation failed: {error_msg}" :"KDK 校验和验证失败: {error_msg}" ,
787+ "KDK was not installed, but should have been: {error_msg}" :"KDK 未安装,但应该已安装: {error_msg}" ,
788+ "Unable to find Kernel Debug Kit" :"无法找到内核调试工具包" ,
789+ "- Unable to find Kernel Debug Kit" :"- 无法找到内核调试工具包" ,
790+ "- Found KDK at: {kdk_path}" :"- 在 {kdk_path} 找到 KDK"
725791 }
726792 return trans
727793
@@ -2956,6 +3022,79 @@ def sys_patch_helpers(self):
29563022 }
29573023 return trans
29583024
3025+ def utilities (self ):
3026+ if self .language_point == "English" :
3027+ trans = {
3028+ # dmg_mount.py
3029+ "- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" :"- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" ,
3030+ "- Failed to mount Universal-Binaries.dmg" :"- Failed to mount Universal-Binaries.dmg" ,
3031+ "- Mounted Universal-Binaries.dmg" :"- Mounted Universal-Binaries.dmg" ,
3032+ "- Found HackdocInternal resources, mounting..." :"- Found HackdocInternal resources, mounting..." ,
3033+ "- Failed to mount HackdocInternal resources" :"- Failed to mount HackdocInternal resources" ,
3034+ "- Mounted HackdocInternal resources" :"- Mounted HackdocInternal resources" ,
3035+ "- Failed to merge HackdocInternal resources" :"- Failed to merge HackdocInternal resources" ,
3036+ "- Local PatcherSupportPkg resources available, continuing..." :"- Local PatcherSupportPkg resources available, continuing..." ,
3037+
3038+ # files.py
3039+ " - Skipping {file_name}, cannot locate {source_folder}" :" - Skipping {file_name}, cannot locate {source_folder}" ,
3040+ " - Installing: {file_name}" :" - Installing: {file_name}" ,
3041+ " - Found existing {file_name}, overwriting..." :" - Found existing {file_name}, overwriting..." ,
3042+ " - Removing: {file_name}" :" - Removing: {file_name}" ,
3043+
3044+ # kdk_merge.py
3045+ "- Matching KDK determined to already be merged, skipping" :"- Matching KDK determined to already be merged, skipping" ,
3046+ "- Backing up IOHIDEventDriver CodeSignature" :"- Backing up IOHIDEventDriver CodeSignature" ,
3047+ "- Restoring IOHIDEventDriver CodeSignature" :"- Restoring IOHIDEventDriver CodeSignature" ,
3048+ " - CodeSignature folder missing, creating" :" - CodeSignature folder missing, creating" ,
3049+ "- Merging KDK with Root Volume: {kdk_name}" :"- Merging KDK with Root Volume: {kdk_name}" ,
3050+ "- Failed to merge KDK with Root Volume" :"- Failed to merge KDK with Root Volume" ,
3051+ "- Successfully merged KDK with Root Volume" :"- Successfully merged KDK with Root Volume" ,
3052+ "Failed to install KDK" :"Failed to install KDK" ,
3053+ "Unable to get KDK info: {error_msg}" :"Unable to get KDK info: {error_msg}" ,
3054+ "Could not retrieve KDK: {error_msg}" :"Could not retrieve KDK: {error_msg}" ,
3055+ "Could not download KDK: {error_msg}" :"Could not download KDK: {error_msg}" ,
3056+ "KDK checksum validation failed: {error_msg}" :"KDK checksum validation failed: {error_msg}" ,
3057+ "KDK was not installed, but should have been: {error_msg}" :"KDK was not installed, but should have been: {error_msg}" ,
3058+ "- Unable to find Kernel Debug Kit" :"- Unable to find Kernel Debug Kit" ,
3059+ "- Found KDK at: {kdk_path}" :"- Found KDK at: {kdk_path}"
3060+ }
3061+ elif self .language_point == "简体中文" :
3062+ trans = {
3063+ # dmg_mount.py
3064+ "- PatcherSupportPkg resources missing, Patcher likely corrupted!!!" :"- PatcherSupportPkg 资源缺失,修补程序可能已损坏!!!" ,
3065+ "- Failed to mount Universal-Binaries.dmg" :"- 挂载 Universal-Binaries.dmg 失败" ,
3066+ "- Mounted Universal-Binaries.dmg" :"- 已挂载 Universal-Binaries.dmg" ,
3067+ "- Found HackdocInternal resources, mounting..." :"- 找到 HackdocInternal 资源,正在挂载..." ,
3068+ "- Failed to mount HackdocInternal resources" :"- 挂载 HackdocInternal 资源失败" ,
3069+ "- Mounted HackdocInternal resources" :"- 已挂载 HackdocInternal 资源" ,
3070+ "- Failed to merge HackdocInternal resources" :"- 合并 HackdocInternal 资源失败" ,
3071+ "- Local PatcherSupportPkg resources available, continuing..." :"- 本地 PatcherSupportPkg 资源可用,继续..." ,
3072+
3073+ # files.py
3074+ " - Skipping {file_name}, cannot locate {source_folder}" :" - 跳过 {file_name},无法定位 {source_folder}" ,
3075+ " - Installing: {file_name}" :" - 正在安装: {file_name}" ,
3076+ " - Found existing {file_name}, overwriting..." :" - 找到现有 {file_name},正在覆盖..." ,
3077+ " - Removing: {file_name}" :" - 正在删除: {file_name}" ,
3078+
3079+ # kdk_merge.py
3080+ "- Matching KDK determined to already be merged, skipping" :"- 匹配的 KDK 已确定已合并,跳过" ,
3081+ "- Backing up IOHIDEventDriver CodeSignature" :"- 正在备份 IOHIDEventDriver 代码签名" ,
3082+ "- Restoring IOHIDEventDriver CodeSignature" :"- 正在恢复 IOHIDEventDriver 代码签名" ,
3083+ " - CodeSignature folder missing, creating" :" - 代码签名文件夹缺失,正在创建" ,
3084+ "- Merging KDK with Root Volume: {kdk_name}" :"- 正在将 KDK 与根卷合并: {kdk_name}" ,
3085+ "- Failed to merge KDK with Root Volume" :"- 将 KDK 与根卷合并失败" ,
3086+ "- Successfully merged KDK with Root Volume" :"- 成功将 KDK 与根卷合并" ,
3087+ "Failed to install KDK" :"安装 KDK 失败" ,
3088+ "Unable to get KDK info: {error_msg}" :"无法获取 KDK 信息: {error_msg}" ,
3089+ "Could not retrieve KDK: {error_msg}" :"无法检索 KDK: {error_msg}" ,
3090+ "Could not download KDK: {error_msg}" :"无法下载 KDK: {error_msg}" ,
3091+ "KDK checksum validation failed: {error_msg}" :"KDK 校验和验证失败: {error_msg}" ,
3092+ "KDK was not installed, but should have been: {error_msg}" :"KDK 未安装,但应该已安装: {error_msg}" ,
3093+ "- Unable to find Kernel Debug Kit" :"- 无法找到内核调试工具包" ,
3094+ "- Found KDK at: {kdk_path}" :"- 在 {kdk_path} 找到 KDK"
3095+ }
3096+ return trans
3097+
29593098class TranslateLanguage_efi_builder :
29603099 def __init__ (self , global_constants : Constants ) -> None :
29613100 self .file_name : str = ".com.hackdoc.oclp-r.plist"
0 commit comments