Skip to content

feat(checks): add accelerator key consistency check#19885

Open
fahadhewad wants to merge 1 commit into
WeblateOrg:mainfrom
fahadhewad:accelerator-check
Open

feat(checks): add accelerator key consistency check#19885
fahadhewad wants to merge 1 commit into
WeblateOrg:mainfrom
fahadhewad:accelerator-check

Conversation

@fahadhewad
Copy link
Copy Markdown

Adds an opt in accelerators quality check, equivalent to msgfmt --check-accelerators, requested in #5962.

It flags a translated string when the source and translation doesnt contain a matching accelerator key.

The check is disabled by default and enabled per component with the accelerators flag.

@fahadhewad fahadhewad requested a review from nijel as a code owner June 4, 2026 15:53
Add an opt-in quality check that flags strings where the source and translation do not contain a matching accelerator key. It checks both the "&" (Qt/Windows) and "_" (GTK) markers, reporting a problem when the counts differ or the translation contains more than one.

The check is disabled by default and is turned on per string or component with the "accelerators" flag, or skipped with "ignore-accelerators".

Closes WeblateOrg#5962
@fahadhewad fahadhewad force-pushed the accelerator-check branch from 54b243a to 7d86160 Compare June 4, 2026 16:31
@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented Jun 4, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 9 changed Jun 4, 2026, 10:41 PM

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.

1 participant