Skip to content

Commit

Permalink
Make external links translatable (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jun 3, 2024
1 parent 25da402 commit 4552b05
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
19 changes: 16 additions & 3 deletions src/editor-sidebar/metadata-editor-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ export const ThemeMetadataEditorModal = ( { onRequestClose } ) => {
} }
>
<ExternalLink
href="https://make.wordpress.org/themes/handbook/review/required/theme-tags/"
href={ __(
'https://make.wordpress.org/themes/handbook/review/required/theme-tags/',
'create-block-theme'
) }
style={ { fontSize: '12px' } }
>
{ __( 'Read more.', 'create-block-theme' ) }
Expand All @@ -241,7 +244,12 @@ export const ThemeMetadataEditorModal = ( { onRequestClose } ) => {
'create-block-theme'
) }
<br />
<ExternalLink href="https://make.wordpress.org/themes/handbook/review/required/#6-plugins">
<ExternalLink
href={ __(
'https://make.wordpress.org/themes/handbook/review/required/#6-plugins',
'create-block-theme'
) }
>
{ __( 'Read more.', 'create-block-theme' ) }
</ExternalLink>
</>
Expand Down Expand Up @@ -278,7 +286,12 @@ Plugin Description`,
'create-block-theme'
) }
<br />
<ExternalLink href="https://make.wordpress.org/themes/handbook/review/required/#1-licensing-copyright">
<ExternalLink
href={ __(
'https://make.wordpress.org/themes/handbook/review/required/#1-licensing-copyright',
'create-block-theme'
) }
>
{ __( 'Read more.', 'create-block-theme' ) }
</ExternalLink>
</>
Expand Down
7 changes: 6 additions & 1 deletion src/landing-page/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ export default function LandingPage() {
),
{
ExternalLink: (
<ExternalLink href="https://wordpress.org/support/plugin/create-block-theme/" />
<ExternalLink
href={ __(
'https://wordpress.org/support/plugin/create-block-theme/',
'create-block-theme'
) }
/>
),
}
) }
Expand Down

0 comments on commit 4552b05

Please sign in to comment.