Skip to content

Translation linter work - Rework of #3597#3683

Open
JaminShanti wants to merge 3 commits intojamulussoftware:mainfrom
JaminShanti:translation-linter-work
Open

Translation linter work - Rework of #3597#3683
JaminShanti wants to merge 3 commits intojamulussoftware:mainfrom
JaminShanti:translation-linter-work

Conversation

@JaminShanti
Copy link
Copy Markdown

Short description of changes
Rework of #3597

Introduces an extended Python-based Qt .ts translation checker. This tool validates translation files according to Qt Linguist semantics, catching common formatting and syntax issues such as:

  • Empty translations
  • Placeholder mismatches (%1, %2, etc.)
  • Missing HTML tags
  • Leading/trailing whitespace inconsistencies
  • Newline mismatches

It features a strict mode (--strict) designed for CI pipeline integration, which exits with a non-zero code when warnings or severe errors are present. It also outputs a detailed test summary organized by language.

CHANGELOG: SKIP

Context: Fixes an issue?

Context: This provides a more robust, automated way to ensure the quality and consistency of internationalization (i18n) files, reducing the manual review overhead required for ongoing translation updates.

Does this change need documentation? What needs to be documented and how?

No end-user documentation is required on the website. A brief note should likely be added to CONTRIBUTING.md or the developer documentation explaining how contributors or CI runners can execute the script against the src/translation directory.

Status of this Pull Request

Working implementation.

What is missing until this pull request can be merged?

  • Review from the core team on the specific validation rules to ensure the severity levels align with the project's standards.
  • Integration into the automated GitHub Actions / CI workflow.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

ann0see and others added 3 commits February 8, 2026 15:03
Make script executable

Add PR commenting logic

Add pygithub dependency

Fix import

Remove GitHub requirements

Refactor test suite

Fix some errors

Add styling

Add severity

Be closer to qtlinguist semantics
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.

2 participants