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 external links translatable #663

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Conversation

t-hamano
Copy link
Contributor

@t-hamano t-hamano commented Jun 1, 2024

This PR applies a translation function to some external links, since they may be locale-specific.

However, the following links remain unchanged:


<ExternalLink href="https://github.com/WordPress/create-block-theme/issues/new" />

<ExternalLink href="https://github.com/WordPress/create-block-theme" />

GitHub URLs are the same regardless of locale.


<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>

Currently it is not possible to make strings in HTML templates translatable. See the following core ticket for more information: https://core.trac.wordpress.org/ticket/60298

Copy link
Member

@madhusudhand madhusudhand left a comment

Choose a reason for hiding this comment

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

LGTM!

@t-hamano
Copy link
Contributor Author

t-hamano commented Jun 3, 2024

Thanks for the review!

@t-hamano t-hamano merged commit 4552b05 into trunk Jun 3, 2024
2 checks passed
@t-hamano t-hamano deleted the i18n/external-link-translatable branch June 3, 2024 09:46
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