Skip to content
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

Provide translators comment for Font size and Letter Case #40879

Conversation

tomasztunik
Copy link
Contributor

@tomasztunik tomasztunik commented May 6, 2022

What?

Provide translators' comment for "Font size" and "Letter Case" in the typography panel to make it less likely for these two strings to be translated the same way.

Fixes #38329

Why?

In some languages - ie. Polish - it's possible to provide similar translations for both strings, this translator's comment will help to prompt translators to ensure uniqueness between the two.

Apart from possibly this making the UI confusing with two settings behind the same name it also caused the UI to not render correctly as we sometimes rely on labels as unique identifiers ie. like with the Tools Panel.

How?

Update block-editor TypographyPanel to provide translators' comments to reduce the chance of this issue reappearing.

@tomasztunik tomasztunik requested a review from ellatrix as a code owner May 6, 2022 08:36
in some languages ie. Polish it's possible to provide similar translations
for both strings, this translators comment will help to prompt translators
to ensure uniqueness between the two.
@tomasztunik tomasztunik force-pushed the fix/38329-font-size-letter-case-translation-context branch from 9a53cc0 to b719ee9 Compare May 6, 2022 08:40
@tomasztunik tomasztunik added the Internationalization (i18n) Issues or PRs related to internationalization efforts label May 6, 2022
Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

Thanks!

@tomasztunik tomasztunik added the [Type] Bug An existing feature does not function as intended label May 6, 2022
@tomasztunik tomasztunik merged commit 859311e into WordPress:trunk May 9, 2022
@tomasztunik tomasztunik deleted the fix/38329-font-size-letter-case-translation-context branch May 9, 2022 14:22
@github-actions github-actions bot added this to the Gutenberg 13.3 milestone May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internationalization (i18n) Issues or PRs related to internationalization efforts [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paragraph block issue when site is set to Polish language
2 participants