Skip to content

Commit ea6a8b2

Browse files
committed
fix problem on building efi
1 parent 97c0b5f commit ea6a8b2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

oclp_r/efi_builder/networking/wireless.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _on_model(self) -> None:
6161
# This works around OCLP spoofing the Wifi card and therefore unable to actually detect the correct device
6262
if self.computer.wifi.chipset == device_probe.Broadcom.Chipsets.AirportBrcmNIC and self.constants.validate is False and self.computer.wifi.country_code:
6363
support.BuildSupport(self.model, self.constants, self.config).enable_kext("AirportBrcmFixup.kext", self.constants.airportbcrmfixup_version, self.constants.airportbcrmfixup_path)
64-
logging.info(self.trans["- Setting Wireless Card's Country Code: {self.computer.wifi.country_code}"].format(computer=self.computer))
64+
logging.info(self.trans["- Setting Wireless Card's Country Code: {country_code}"].format(country_code=self.computer.wifi.country_code))
6565
if self.computer.wifi.pci_path:
6666
arpt_path = self.computer.wifi.pci_path
6767
logging.info(self.trans["- Found ARPT device at {arpt_path}"].format(arpt_path=arpt_path))
@@ -175,5 +175,5 @@ def _wifi_fake_id(self) -> None:
175175
logging.info(self.trans["- Using known ARPT Path: {arpt_path}"].format(arpt_path=arpt_path))
176176

177177
if not self.constants.custom_model and self.computer.wifi and self.constants.validate is False and self.computer.wifi.country_code:
178-
logging.info(self.trans["- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}"].format(computer=self.computer))
178+
logging.info(self.trans["- Applying fake ID for WiFi, setting Country Code: {country_code}"].format(country_code=self.computer.wifi.country_code))
179179
self.config["DeviceProperties"]["Add"][arpt_path] = {"brcmfx-country": self.computer.wifi.country_code}

oclp_r/support/translate_language.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,27 +3621,27 @@ def wireless(self):
36213621
if self.language_point=="English":
36223622
trans={
36233623
"- Found Wireless Device {0}:{1}":"- Found Wireless Device {0}:{1}",
3624-
"- Setting Wireless Card's Country Code: {self.computer.wifi.country_code}":"- Setting Wireless Card's Country Code: {self.computer.wifi.country_code}",
3624+
"- Setting Wireless Card's Country Code: {country_code}":"- Setting Wireless Card's Country Code: {country_code}",
36253625
"- Found ARPT device at {arpt_path}":"- Found ARPT device at {arpt_path}",
36263626
"- Enabling Wake on WLAN support":"- Enabling Wake on WLAN support",
36273627
"- Enabling BCM943224 and BCM94331 Networking Support":"- Enabling BCM943224 and BCM94331 Networking Support",
36283628
"- Enabling BCM94328 Networking Support":"- Enabling BCM94328 Networking Support",
36293629
"- Enabling Atheros Networking Support":"- Enabling Atheros Networking Support",
36303630
"No known PCI pathing for this model":"No known PCI pathing for this model",
36313631
"- Using known ARPT Path: {arpt_path}":"- Using known ARPT Path: {arpt_path}",
3632-
"- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}":"- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}"
3632+
"- Applying fake ID for WiFi, setting Country Code: {country_code}":"- Applying fake ID for WiFi, setting Country Code: {country_code}"
36333633
}
36343634
elif self.language_point=="简体中文":
36353635
trans={
36363636
"- Found Wireless Device {0}:{1}":"- 发现无线设备 {0}:{1}",
3637-
"- Setting Wireless Card's Country Code: {self.computer.wifi.country_code}":"- 设置无线网卡的国家代码:{self.computer.wifi.country_code}",
3637+
"- Setting Wireless Card's Country Code: {country_code}":"- 设置无线网卡的国家代码:{country_code}",
36383638
"- Found ARPT device at {arpt_path}":"- 在 {arpt_path} 发现 ARPT 设备",
36393639
"- Enabling Wake on WLAN support":"- 启用无线局域网唤醒支持",
36403640
"- Enabling BCM943224 and BCM94331 Networking Support":"- 启用 BCM943224 和 BCM94331 网络支持",
36413641
"- Enabling BCM94328 Networking Support":"- 启用 BCM94328 网络支持",
36423642
"- Enabling Atheros Networking Support":"- 启用 Atheros 网络支持",
36433643
"No known PCI pathing for this model":"此型号没有已知的 PCI 路径",
36443644
"- Using known ARPT Path: {arpt_path}":"- 使用已知的 ARPT 路径:{arpt_path}",
3645-
"- Applying fake ID for WiFi, setting Country Code: {self.computer.wifi.country_code}":"- 为 WiFi 应用假 ID,设置国家代码:{self.computer.wifi.country_code}"
3645+
"- Applying fake ID for WiFi, setting Country Code: {country_code}":"- 为 WiFi 应用假 ID,设置国家代码:{country_code}"
36463646
}
36473647
return trans

0 commit comments

Comments
 (0)