- Issue created by @charles belov
- First commit to issue fork.
- Merge request !6497drupal-3419894:Rename Text alternative field label to Alternative text. → (Closed) created by shweta__sharma
- Status changed to Needs review
10 months ago 7:28am 8 February 2024 Updated the Text alternative field label to Alternative text kindly review it.
After Fix -
Thanks
- Assigned to Kanchan Bhogade
- Issue was unassigned.
- 🇮🇳India Kanchan Bhogade
Hi,
Tested And verified patch on Drupal version 11.x
The patch applied successfully...Testing steps:
Followed the mentioned steps for the issueTest Result:
The field label text is updated to "Alternative text"Attaching screenshots for reference
Status "Need Review" for code review
- Status changed to Needs work
10 months ago 3:29pm 8 February 2024 - 🇮🇳India keshav patel
Keshav Patel → made their first commit to this issue’s fork.
- Merge request !6520Issue #3419894: Rename "Text alternative" field label to "Alternative text" → (Open) created by keshav patel
- Status changed to Needs review
10 months ago 6:41am 9 February 2024 - 🇮🇳India keshav patel
MR 6520 is passed, Please Review.
Used the following reference to build: https://www.drupal.org/docs/core-modules-and-themes/core-modules/ckedito... →
- 🇮🇳India Kanchan Bhogade
Hi,
Tested the latest MR !6520 on Drupal version 11.x
The patch applied successfully...Test Result:
The field label text is updated to "Alternative text"Attaching screenshots for reference
Keeping it in Need review for code review
As code is pass, can move to RTBC - Status changed to Needs work
10 months ago 2:09pm 9 February 2024 - 🇺🇸United States smustgrave
Why use a new MR vs the existing one that was pointed to the right branch? Should avoid clutter
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
IIRC this was done intentionally. I agree it should be consistent between
drupalImage
anddrupalMedia
though — that is a bug.Can you please do the necessary git/issue queue archeology to describe why this choice was originally made (and link to that decision), and also describe why that was wrong? That information would be crucial to have in the issue summary 😊🙏
- 🇺🇸United States charles belov San Francisco, CA, US
@wim-leers I did a search in DuckDuckGo and Google for pages on URLs beginning www.drupal.org/project/drupal/issues which contained both "text alternative" and "alternative text" (with quotes) as character strings. None of the issues which turned up as obvious choices had a discussion about which was the appropriate choice for the label.
I also searched for git.drupalcode.org content containing "text alternative," with no results in either engine.
I have updated the issue descriptions to add my reasoning as to why I believe "Alternative text" is the correct label.
- 🇺🇸United States smustgrave
Recommend using the git blame on the file to find the ticket it was added in and if discussion was done for it.
- 🇺🇸United States charles belov San Francisco, CA, US
I'm actually QA, not a developer, and setting up an environment to run git blame against Drupal core is beyond my knowledge.
- 🇺🇸United States charles belov San Francisco, CA, US
\core\modules\ckeditor5\js\ckeditor5_plugins\drupalImage\src\imagealternativetext\ui\imagealternativetextformview.js
shows the line
labeledInput.label = Drupal.t('Text alternative');
was last committed with
c6d7b83fa35 (bnjmnm 2022-03-31 08:18:19 -0400 254)However, if I search for c6d7b83fa35 on either drupal.org or git.drupalcode.org, I get no results.
I do see relevant issues involving @bnjmnm which were updated around that time:
- [drupalImage] Make image alt text required or strongly encouraged →
- [drupalMedia] Show the Image Media's default alt text that is being overridden →
The latter issue does have the comment:
Is "Default alternative text" the right term? Does it convey enough information?
I think that something like "Alternative text from Media Library" might be clearer?
but I don't see anything in the issue discussing "Alternative text" versus "Text alternative".
- last update
9 months ago Patch Failed to Apply Amire → changed the visibility of the branch 3419894-rename-text-alternative to hidden.
Amire → changed the visibility of the branch 3419894-rename-text-alternative to active.
Here, I have applied MR !6520, and it was working successfully. I am attaching the screenshot for review. The Drupal version used is 11.x-dev.
- Status changed to Needs review
9 months ago 7:40am 27 February 2024 - 🇧🇹Bhutan Amir Gurung
Here, I have applied the MR !6520, and it was working for me. I am attaching the screenshot for review.
used version 11.x-dev
for the reff. i have attached the screen capture - Status changed to Needs work
9 months ago 8:08am 27 February 2024 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇮🇳India Mithun S Bangalore
Mithun S → made their first commit to this issue’s fork.
- Status changed to Needs review
9 months ago 6:08am 28 February 2024 - 🇮🇳India Mithun S Bangalore
Updated the original MR and fixed the Pipeline issue.
- Status changed to RTBC
9 months ago 3:48pm 28 February 2024 - 🇺🇸United States smustgrave
Appears the researched requested was done in #17 (saving credit for that and to @Wim Leers for the review)
- 🇺🇸United States charles belov San Francisco, CA, US
For clarification, the research requested was done in #17 and #21.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
The research is incomplete. We should investigate why the current string was adopted.
- Status changed to Needs work
9 months ago 1:09pm 29 February 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This string was added in #3222757: [drupalImage] Make image alt text required or strongly encouraged → .
- Status changed to RTBC
9 months ago 1:13pm 29 February 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
The words first appear in accessibility maintainer @andrewmacpherson's comment at #3222757-32: [drupalImage] Make image alt text required or strongly encouraged → .
That's the only place it ever occurred, it seems 🤠
\Drupal\editor\Form\EditorImageDialog::buildForm()
has said since 2015, as has its validation error if it's missing:
'#required_error' => $this->t('Alternative text is required.<br />(Only in rare cases should this be left empty. To create empty alternative text, enter <code>""
— two double quotes without any content).'),
So: +1! This is ready. Sorry for slowing us down, but I want to ensure we definitely get it right this time 😊
⚠️ More importantly, my research shows that thanks to this very string already existing in
EditorImageDialog
, this is not a string change, because the string already exists and hence already has a translation! 🥳 - Status changed to Fixed
9 months ago 9:20pm 29 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.