Skip to content

Escape percent sign in translation#257

Open
sgiehl wants to merge 1 commit into
5.x-devfrom
percent-in-translation
Open

Escape percent sign in translation#257
sgiehl wants to merge 1 commit into
5.x-devfrom
percent-in-translation

Conversation

@sgiehl
Copy link
Copy Markdown
Member

@sgiehl sgiehl commented Jun 1, 2026

Description

We should always escape percent signs in translations, to ensure they won't break the sprintf

Note: This currently let's core tests for translations fail: matomo-org/matomo#24576

Checklist

  • [✖] Tested locally or on demo2/demo3?
  • [NA] New test case added/updated?
  • [NA] Are all newly added texts included via translation?
  • [✔] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [NA] Version bumped?
  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules
  • [NA] Documentation updated?

@sgiehl sgiehl requested a review from a team June 1, 2026 10:13
Comment thread lang/en.json
"AlertDescriptionOptional": "Description (optional)",
"AlertDescriptionInlineHelp": "Enter a description to provide additional context, such as the purpose or usage.",
"AlertDescriptionPlaceholder": "Alert me when visits decrease by 40%",
"AlertDescriptionPlaceholder": "Alert me when visits decrease by 40%%",
Copy link
Copy Markdown
Contributor

@AltamashShaikh AltamashShaikh Jun 1, 2026

Choose a reason for hiding this comment

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

@sgiehl We don't need to create a new key here ?
Its already translated in other languages

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No. I'll fix the translations on weblate after the update

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