Update driver.xml for ame 26 (for multi languages)

This commit is contained in:
ckamte
2026-05-12 14:47:41 +06:30
parent d885396886
commit fffc00e37f

View File

@@ -1050,13 +1050,14 @@ def write_driver_xml(pkgJson: dict, pkgDir: str, reqLang: list[str]) -> None:
langRoot = ET.SubElement(productInfo, "SupportedLanguages") langRoot = ET.SubElement(productInfo, "SupportedLanguages")
# for mul only apps (AME, etc)
availLoc = pkgJson["SupportedLanguages"]["Language"] availLoc = pkgJson["SupportedLanguages"]["Language"]
if availLoc[0]["locale"] != "mul": if reqLang[0] not in ["mul", "all"]:
xml_langs_list(langRoot, availLoc)
elif reqLang[0] != "mul":
xml_langs_list(langRoot, reqLang) xml_langs_list(langRoot, reqLang)
elif availLoc[0]["locale"] != "mul":
xml_langs_list(langRoot, availLoc)
# suppress error on dep package download # suppress error on dep package download
if "MinimumSupportedClientVersion" in pkgJson and "HDBuilderVersion" in pkgJson: if "MinimumSupportedClientVersion" in pkgJson and "HDBuilderVersion" in pkgJson:
for key, val in dict( for key, val in dict(