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

Make strings in theme.json translatable #66675

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

d-alleyne
Copy link
Contributor

@d-alleyne d-alleyne commented Nov 1, 2024

What?

Aspect Ratios and Shadow Presets are untranslated. The strings aren't in GlotPress.

Why?

This PR resolves the missing Aspect Ratios in #66027.

How?

By adding a symlink to theme.json in the project's root directory, strings will be extracted

Testing Instructions

  1. Download the plugin locally.
  2. Make POT with wp i18n make-pot ..
  3. Inspect the generated gutenberg.pot file to confirm that the Aspect Ratio strings from theme.json are not being extracted.

N.B the shadow.presets strings are not extracted.

Testing Instructions for Keyboard

Screenshots or screencast

Copy link

github-actions bot commented Nov 1, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: d-alleyne <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@skorasaurus skorasaurus added the Internationalization (i18n) Issues or PRs related to internationalization efforts label Nov 12, 2024
@swissspidy swissspidy added the [Type] Enhancement A suggestion for improvement. label Dec 16, 2024
@@ -0,0 +1 @@
lib/theme.json
Copy link
Member

Choose a reason for hiding this comment

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

I'd actually move the file instead of adding a symlink

@swissspidy swissspidy requested a review from Mamaduka December 16, 2024 15:41
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] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants