Skip to content

Add an optional argument to md2xliff command, to update from an old xliff file#8

Merged
seanbudd merged 7 commits into
nvaccess:mainfrom
nvdaes:updateXliff
May 25, 2026
Merged

Add an optional argument to md2xliff command, to update from an old xliff file#8
seanbudd merged 7 commits into
nvaccess:mainfrom
nvdaes:updateXliff

Conversation

@nvdaes

@nvdaes nvdaes commented May 21, 2026

Copy link
Copy Markdown

Summary of the issue

Updating xliff files was not posible with l10nUtil.exe.

Development approach

An optional --oldXliffPath (-o) argument has been added to the md2xliff command. If this argument is provided, markdownTranslate.updateXliff Will be used, after preprocessing the old xliff file to remove corrupt strings.

Testing performed

Tested locally, updating (and generating) an xliff file from the readme.md of this repo.

A new string has been added to the updated xliff. Note that, in the readme.md, a new string is added to document the new optional argument.

Copilot AI review requested due to automatic review settings May 21, 2026 17:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an option to the md2xliff CLI command to reuse an existing XLIFF so existing translations can be carried forward when regenerating XLIFF from Markdown.

Changes:

  • Added -o/--oldXliffPath option to md2xliff.
  • When --oldXliffPath is provided, preprocesses the old XLIFF and uses it to generate an updated output XLIFF.
  • Documented the new option in readme.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
source/l10nUtil.py Adds new md2xliff CLI option and branches into an “update from old XLIFF” workflow.
readme.md Documents the new md2xliff option for preserving translations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/l10nUtil.py Outdated
Comment thread source/l10nUtil.py Outdated
Comment thread readme.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nvdaes nvdaes marked this pull request as draft May 21, 2026 18:11
@nvdaes

nvdaes commented May 21, 2026

Copy link
Copy Markdown
Author

@copilot review again please

@nvdaes nvdaes marked this pull request as ready for review May 21, 2026 18:24
@seanbudd seanbudd requested a review from Copilot May 25, 2026 01:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread source/l10nUtil.py
Comment thread source/l10nUtil.py
Comment thread readme.md
@seanbudd seanbudd merged commit c26268f into nvaccess:main May 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants