update Driver.xml for AME

This commit is contained in:
ckamte
2026-01-27 17:23:03 +06:30
parent 3549a967c7
commit b3a4c2bb7b

View File

@@ -1022,7 +1022,10 @@ def write_driver_xml(pkgJson: dict, pkgDir: str) -> None:
productInfo.append(child) productInfo.append(child)
langRoot = ET.SubElement(productInfo, "SupportedLanguages") langRoot = ET.SubElement(productInfo, "SupportedLanguages")
for lg in pkgJson["SupportedLanguages"]["Language"]:
availLoc = pkgJson["SupportedLanguages"]["Language"]
if availLoc[0]["locale"] != "mul":
for lg in availLoc:
for key, val in dict({"Language": ""}).items(): for key, val in dict({"Language": ""}).items():
child = ET.Element(key) child = ET.Element(key)
child.set("locale", lg["locale"]) child.set("locale", lg["locale"])