From d5033a6275bff74560a0b842bebdc9b9a6f54ee0 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Mon, 9 Sep 2024 18:03:00 +1000 Subject: [PATCH] sconstruct: correctly detect the language of xliff files when trying to skip English --- sconstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sconstruct b/sconstruct index 0b9c6a401b2..8bbf1708f6c 100755 --- a/sconstruct +++ b/sconstruct @@ -335,7 +335,7 @@ numberedHeadingsStyle = os.path.join(userDocsDir.path, "numberedHeadings.css") # Create Non-english md files in user_docs from localized xliff and English skel files for xliffFile in env.Glob(os.path.join(userDocsDir.path, "*", "*.xliff")): - lang = os.path.basename(xliffFile.path).split(".")[0] + lang = os.path.split(os.path.dirname(xliffFile.path))[-1] if lang == "en": continue mdFile = os.path.splitext(xliffFile.path)[0] + ".md"