Skip to content

Consider missing Android placeholders as errors if translation has extra % signs#4037

Merged
mathjazz merged 2 commits intomozilla:mainfrom
eemeli:android-percentages
Mar 25, 2026
Merged

Consider missing Android placeholders as errors if translation has extra % signs#4037
mathjazz merged 2 commits intomozilla:mainfrom
eemeli:android-percentages

Conversation

@eemeli
Copy link
Member

@eemeli eemeli commented Mar 24, 2026

Fixes #4035
See also bug 2025733

This should cover the cases where a placeholder is mistyped so that it doesn't parse as an Android placeholder, but still at least starts with a % character.

@eemeli eemeli requested review from flodolo and mathjazz March 24, 2026 15:30
Copy link
Collaborator

@flodolo flodolo left a comment

Choose a reason for hiding this comment

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

This seems reasonable, but I have an incredibly hard time following the code with the current variable names.

@eemeli eemeli requested a review from flodolo March 24, 2026 16:42
@mathjazz mathjazz merged commit e15ef86 into mozilla:main Mar 25, 2026
3 checks passed
@eemeli eemeli deleted the android-percentages branch March 25, 2026 10:17
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.

Android linter failed to catch variable mispelled as %1 (instead of %1$s)

3 participants