Skip to content

Commit

Permalink
sconstruct: correctly detect the language of xliff files when trying …
Browse files Browse the repository at this point in the history
…to skip English (#17143)

Summary of the issue:
The NVDA build system creates html from markdown files. For any language other than English, these markdown files should be themselves generated from xliff files.
However, a rather strange and incorrect line of code caused this to also happen for English, as the line was not correctly detecting the language.

Description of user facing changes
English user documentation in alpha builds should be based on the very latest markdown files, rather than the last beta from the previous release.
  • Loading branch information
michaelDCurran authored Sep 10, 2024
1 parent 38225bf commit d8d8eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d8d8eb9

Please sign in to comment.