1616 smbios_data ,
1717 bluetooth_data
1818)
19-
19+ from .. support . translate_language import TranslateLanguage_efi_builder
2020
2121class BuildBluetooth :
2222 """
@@ -26,6 +26,7 @@ class BuildBluetooth:
2626 """
2727
2828 def __init__ (self , model : str , global_constants : constants .Constants , config : dict ) -> None :
29+ self .trans = TranslateLanguage_efi_builder (global_constants = global_constants ).bluetooth ()
2930 self .model : str = model
3031 self .config : dict = config
3132 self .constants : constants .Constants = global_constants
@@ -60,7 +61,7 @@ def _on_model(self) -> None:
6061 On-Model Hardware Detection Handling
6162 """
6263 if self .computer .bluetooth_chipset in ["BRCM2070 Hub" , "BRCM2046 Hub" ]:
63- logging .info ("- Fixing Legacy Bluetooth for macOS Monterey" )
64+ logging .info (self . trans [ "- Fixing Legacy Bluetooth for macOS Monterey" ] )
6465 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("BlueToolFixup.kext" , self .constants .bluetool_version , self .constants .bluetool_path )
6566 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("Bluetooth-Spoof.kext" , self .constants .btspoof_version , self .constants .btspoof_path )
6667 self .config ["NVRAM" ]["Add" ]["7C436110-AB2A-4BBB-A880-FE41995C9F82" ]["boot-args" ] += " -btlfxallowanyaddr"
@@ -71,19 +72,19 @@ def _on_model(self) -> None:
7172 # Due to this, BlueToolFixup is required to resolve Firmware Uploading on legacy chipsets
7273 if self .computer .wifi :
7374 if self .computer .wifi .chipset == device_probe .Broadcom .Chipsets .AirPortBrcm4360 :
74- logging .info ("- Fixing Legacy Bluetooth for macOS Monterey" )
75+ logging .info (self . trans [ "- Fixing Legacy Bluetooth for macOS Monterey" ] )
7576 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("BlueToolFixup.kext" , self .constants .bluetool_version , self .constants .bluetool_path )
7677
7778 # Older Mac firmwares (pre-2012) don't support the new chipsets correctly (regardless of WiFi card)
7879 if self .model in smbios_data .smbios_dictionary :
7980 if smbios_data .smbios_dictionary [self .model ]["CPU Generation" ] < cpu_data .CPUGen .ivy_bridge .value :
80- logging .info ("- Fixing Legacy Bluetooth for macOS Monterey" )
81+ logging .info (self . trans [ "- Fixing Legacy Bluetooth for macOS Monterey" ] )
8182 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("BlueToolFixup.kext" , self .constants .bluetool_version , self .constants .bluetool_path )
8283 self ._bluetooth_firmware_incompatibility_workaround ()
8384 elif self .computer .bluetooth_chipset == "3rd Party Bluetooth 4.0 Hub" :
84- logging .info ("- Detected 3rd Party Bluetooth Chipset" )
85+ logging .info (self . trans [ "- Detected 3rd Party Bluetooth Chipset" ] )
8586 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("BlueToolFixup.kext" , self .constants .bluetool_version , self .constants .bluetool_path )
86- logging .info ("- Enabling Bluetooth FeatureFlags" )
87+ logging .info (self . trans [ "- Enabling Bluetooth FeatureFlags" ] )
8788 self .config ["Kernel" ]["Quirks" ]["ExtendBTFeatureFlags" ] = True
8889
8990
@@ -98,7 +99,7 @@ def _prebuilt_assumption(self) -> None:
9899 return
99100
100101 if smbios_data .smbios_dictionary [self .model ]["Bluetooth Model" ] <= bluetooth_data .bluetooth_data .BRCM20702_v1 .value :
101- logging .info ("- Fixing Legacy Bluetooth for macOS Monterey" )
102+ logging .info (self . trans [ "- Fixing Legacy Bluetooth for macOS Monterey" ] )
102103 support .BuildSupport (self .model , self .constants , self .config ).enable_kext ("BlueToolFixup.kext" , self .constants .bluetool_version , self .constants .bluetool_path )
103104 if smbios_data .smbios_dictionary [self .model ]["Bluetooth Model" ] <= bluetooth_data .bluetooth_data .BRCM2070 .value :
104105 self .config ["NVRAM" ]["Add" ]["7C436110-AB2A-4BBB-A880-FE41995C9F82" ]["boot-args" ] += " -btlfxallowanyaddr"
0 commit comments