Skip to content

[Translation] Validate and remove translation strings with invalid format.#119862

Open
bruvzg wants to merge 1 commit into
godotengine:masterfrom
bruvzg:tr_fmt_chk
Open

[Translation] Validate and remove translation strings with invalid format.#119862
bruvzg wants to merge 1 commit into
godotengine:masterfrom
bruvzg:tr_fmt_chk

Conversation

@bruvzg

@bruvzg bruvzg commented May 29, 2026

Copy link
Copy Markdown
Member

Alternative to #116262

It seems like with the way Weblate fuzzy translations work, number of incorrectly formatted string that can break UI is only going up and relaying on tests (and string being fixed in timely manner) won't be feasible.

This PR adds a runtime check (when translation is loaded) and reject translated strings with invalid formatting.

@bruvzg bruvzg added this to the 4.8 milestone May 29, 2026
@bruvzg bruvzg marked this pull request as ready for review May 30, 2026 20:47
@bruvzg bruvzg requested a review from a team as a code owner May 30, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant