Skip to content

Comments

Make the Windows installer translatable#927

Merged
grulja merged 1 commit intoFedoraQt:mainfrom
grulja:installer-translations
Jan 15, 2026
Merged

Make the Windows installer translatable#927
grulja merged 1 commit intoFedoraQt:mainfrom
grulja:installer-translations

Conversation

@grulja
Copy link
Collaborator

@grulja grulja commented Jan 15, 2026

This adds two Python scripts that extract messages from the Windows installer so we can have them translated in Weblate and reassemble again the installer script with the translations we have available.

Both Python scripts were created using Claude Code.

Fixes #926

@gastoner gastoner requested a review from Copilot January 15, 2026 11:36
@grulja grulja review requested due to automatic review settings January 15, 2026 11:36
@gastoner gastoner requested a review from Copilot January 15, 2026 11:37
Copy link

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 adds translation infrastructure for the Windows NSIS installer by introducing two Python scripts that extract and merge translatable strings with the project's translation system, enabling Windows installer messages to be translated through Weblate.

Changes:

  • Added extract-nsis-strings.py to extract English strings from NSIS language files into POT format
  • Added generate-nsis-translations.py to merge PO translations back into NSIS language file format
  • Updated build scripts to integrate NSIS string extraction and translation generation into the existing translation workflow

Reviewed changes

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

Show a summary per file
File Description
po/extract-nsis-strings.py New script to extract translatable strings from NSIS installer files
po/generate-nsis-translations.py New script to generate NSIS language file with translations from PO files
po/generate-pot-files.sh Updated to include NSIS string extraction in the POT generation process
po/build-translations.sh Updated to generate NSIS translations during the build process
po/mediawriter.pot Updated with extracted NSIS strings and regenerated with new timestamp
dist/win/languages.nsh Reformatted with consistent spacing and normalized to use English as fallback

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

Copy link
Collaborator

@gastoner gastoner left a comment

Choose a reason for hiding this comment

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

Left two comments otherwise codewise LGTM

@gastoner
Copy link
Collaborator

Looks like the translation is working (although on latest release it looks same I think), but we are missing one extra translation with uninstaling:
image

Also only on this build this happens to me on Win:
image
Tried on latest main and latest release, and it is working fine, so in this PR is something that causes some glitch for some reason

Copy link

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

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


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

This adds two Python scripts that extract messages from the Windows
installer so we can have them translated in Weblate and reassemble again
the installer script with the translations we have available.

Both Python scripts were created using Claude Code.

Fixes FedoraQt#926
Copy link

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

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.


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

@grulja grulja merged commit 9ffaf33 into FedoraQt:main Jan 15, 2026
12 checks passed
@grulja grulja mentioned this pull request Jan 16, 2026
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.

[RFE] Make the windows installer translatable

2 participants