Skip to content

[Bugfix] Resolve #8610: concatenated strings not translatable #8613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

elpekenin
Copy link

@elpekenin elpekenin commented Nov 15, 2023

Fixes #8610.

As commented on discord, replaces stringified value which was later concatenated, by a %d format specifier.

Tried to mess with xgettext a little but i couldn't find any way to "blacklist" the use of MP_STRINGIFY or something similar, guess it may be interesting to have some tool to check for weird cases like this in the future... But im not doing it (for now? 😝)

Thx jepler for the catch :)

@dhalbert dhalbert changed the title [Bugfix] Resolve #810 [Bugfix] Resolve #8610 Nov 15, 2023
@dhalbert dhalbert requested a review from jepler November 15, 2023 15:08
@dhalbert dhalbert changed the title [Bugfix] Resolve #8610 [Bugfix] Resolve #8610: concatenated strings not translatable Nov 15, 2023
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Thanks! looks like what I was suggesting. Appreciate you jumping on it

@dhalbert dhalbert merged commit d1ddce7 into adafruit:main Nov 15, 2023
@elpekenin elpekenin deleted the bugfix/stringify branch November 15, 2023 18: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.

stringification inside MP_ERROR_TEXT does not work; change affected code.
3 participants