Skip to content

Commit

Permalink
Fixed : Update alt text decision tree links to be translatable (#62076
Browse files Browse the repository at this point in the history
)

* Implemented: Update alt text decision tree links to be translatable

* Implemented: Update alt text decision tree links to be translatable

* Implemented Suggestions

* Implemented comment related changes

Co-authored-by: narenin <narenin@git.wordpress.org>
Co-authored-by: joedolson <joedolson@git.wordpress.org>
Co-authored-by: michalczaplinski <czapla@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
5 people authored May 30, 2024
1 parent d88dffb commit ee3d1ea
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
9 changes: 8 additions & 1 deletion packages/block-library/src/cover/edit/inspector-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ export default function CoverInspectorControls( {
}
help={
<>
<ExternalLink href="https://www.w3.org/WAI/tutorials/images/decision-tree">
<ExternalLink
href={
// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
__(
'https://www.w3.org/WAI/tutorials/images/decision-tree/'
)
}
>
{ __(
'Describe the purpose of the image.'
) }
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,12 @@ export class ImageEdit extends Component {
'Describe the purpose of the image. Leave empty if decorative.'
) }{ ' ' }
<FooterMessageLink
href="https://www.w3.org/WAI/tutorials/images/decision-tree/"
href={
// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
__(
'https://www.w3.org/WAI/tutorials/images/decision-tree/'
)
}
value={ __( 'What is alt text?' ) }
/>
</>
Expand Down
18 changes: 16 additions & 2 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,14 @@ export default function Image( {
<>{ lockAltControlsMessage }</>
) : (
<>
<ExternalLink href="https://www.w3.org/WAI/tutorials/images/decision-tree">
<ExternalLink
href={
// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
__(
'https://www.w3.org/WAI/tutorials/images/decision-tree/'
)
}
>
{ __(
'Describe the purpose of the image.'
) }
Expand Down Expand Up @@ -693,7 +700,14 @@ export default function Image( {
<>{ lockAltControlsMessage }</>
) : (
<>
<ExternalLink href="https://www.w3.org/WAI/tutorials/images/decision-tree">
<ExternalLink
href={
// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
__(
'https://www.w3.org/WAI/tutorials/images/decision-tree/'
)
}
>
{ __(
'Describe the purpose of the image.'
) }
Expand Down
9 changes: 8 additions & 1 deletion packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,14 @@ function MediaTextEdit( {
onChange={ onMediaAltChange }
help={
<>
<ExternalLink href="https://www.w3.org/WAI/tutorials/images/decision-tree">
<ExternalLink
href={
// translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
__(
'https://www.w3.org/WAI/tutorials/images/decision-tree/'
)
}
>
{ __(
'Describe the purpose of the image.'
) }
Expand Down

0 comments on commit ee3d1ea

Please sign in to comment.