Skip to content

Fix l10n util, bundle gettext#18472

Merged
SaschaCowley merged 5 commits intobetafrom
try-fixl10n
Jul 15, 2025
Merged

Fix l10n util, bundle gettext#18472
SaschaCowley merged 5 commits intobetafrom
try-fixl10n

Conversation

@seanbudd
Copy link
Copy Markdown
Member

@seanbudd seanbudd commented Jul 15, 2025

Link to issue number:

Fixup of #18270

#18453 (comment)

Summary of the issue:

We use gettext in l10nUtil now, but it wasn't bundled correctly into NVDA

Description of user facing changes:

l10nutil is fixed for translators

Description of development approach:

bundle gettext into nvda distributions

Testing strategy:

test with nvda build

Known issues with pull request:

none

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

Copilot AI review requested due to automatic review settings July 15, 2025 05:39
@seanbudd seanbudd requested a review from a team as a code owner July 15, 2025 05:39
@seanbudd seanbudd requested a review from SaschaCowley July 15, 2025 05:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that the msgfmt.exe binary is bundled with NVDA and updates l10nUtil to dynamically locate it at runtime.

  • Add msgfmt.exe to the installer manifest under miscDeps/tools
  • Remove the hardcoded _MSGFMT path and compute its location relative to the source file in l10nUtil.py

Reviewed Changes

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

File Description
source/setup.py Include msgfmt.exe in the distribution manifest
source/l10nUtil.py Replace static _MSGFMT with a runtime path

@seanbudd seanbudd added this to the 2025.2 milestone Jul 15, 2025
@seanbudd
Copy link
Copy Markdown
Member Author

@wmhn1872265132 - can you please test this build?

@wmhn1872265132
Copy link
Copy Markdown
Contributor

@wmhn1872265132 - can you please test this build?

This version works fine, thanks for the quick fix

@SaschaCowley SaschaCowley merged commit ef64438 into beta Jul 15, 2025
32 of 34 checks passed
@SaschaCowley SaschaCowley deleted the try-fixl10n branch July 15, 2025 22:54
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.

4 participants