Problem/Motivation
Our interface text guidelines specify that the word "please" shouldn't be used in interface text: https://www.drupal.org/node/604342
A number have crept back in since #679890: Using "Please" in the interface.
Proposed resolution
Remove the word "please" from strings and code comments. Although, do not remove 'please' from any migrate test fixture.
Remaining tasks
Confirm the change for #24.13 which you can see in #38.
Update this issue if #2969406: Fix incorrect message after resetting password is fixed first.
Review
Commit
User interface changes
"Please" removed from numerous messages.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #66 | 2921133-66.patch | 185.57 KB | quietone |
| #66 | interdiff-64-66.txt | 1.09 KB | quietone |
| #65 | Screenshot 2023-07-07 at 10.10.42 AM.png | 159.62 KB | smustgrave |
| #64 | 2921133-64.patch | 187.54 KB | quietone |
| #64 | interdiff-63-64.txt | 1.63 KB | quietone |
Issue fork drupal-2921133
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2921133-remove-please-from
changes, plain diff MR !3750
Comments
Comment #2
xjmComment #4
xjmWith tests fixed.
Comment #5
xjmRewrapping rewrappable comments.
Comment #16
smustgrave commentedSearching the D10.1.x repo and found 44 instances of the word "please"
At this time this we will need a D10 version of the patch.
Comment #17
longwaveWe might also be able to use cspell to prevent this from creeping back in again.
Comment #18
quietone commentedUsing cspell seems like a nice simple way to move forward. Let's see what using cpell would look like.
I added please to the 'flagwords' and ran spellcheck:core. The results are in the attached files. There are 139 instances of 'please' in 84 files. I have not looked at the files.
This now needs a reroll, that includes this change to cspell. I have updated the Issue Summary with details.
Comment #19
prem suthar commentedAdded The Patch As per suggestion #18 and Remove all "Please" Word As Per #18 "spellcheck.txt".
Comment #20
prem suthar commentedComment #21
smustgrave commentedThere’s no interdiff in #19 and with all those changes it probably needs one. Keeping for reroll tag for the next person
Comment #22
ankithashettyHere is a rerolled patch, addressing the pointers from #18.
Addressed all the files shared in spellcheck.txt from #18, expect these, as this issue is focuses on removing 'Please' word only:
Thanks!
Comment #23
smustgrave commentedThank you @ankithashetty for all the work.
Applied the patch and I still see the word please 14 times.
Not sure if the migrate ones need to stay
And for the ckeditor5 one not sure if you can replace but have to build the plugins again which might be the error we seeing in the build
Comment #24
longwaveSome review comments:
This needs rewrapping and "consult" should not be capitalised.
This needs rewrapping.
Not sure this sentence makes sense, but perhaps this is out of scope. This needs rewrapping anyway.
This is probably better off as two sentences: "You cannot use an external URL. Enter a relative path."
This needs rewrapping.
I am not sure that "Wait..." makes much sense on its own, I feel users are used to seeing "Please wait", so not sure what to do here.
This needs rewrapping.
And again.
"Give a name to the file" doesn't read well. Maybe "Ensure the file has a name."? Though, I'm not sure how this could even happen.
See above comments on "Please wait", we should be consistent whatever we choose.
I think we should remove "Take action" entirely, as it doesn't give me any clues as to what action to take.
Not sure "Try again" is necessary, the user might not want to try again.
"Set your password" feels a bit too direct but not sure what would improve it.
contact -> Contact
This comes from PHPUnit itself, so we will have to ignore this instance of "please" by adding
// cspell:ignore-next-lineabove it.Comment #25
smustgrave commentedAlso see changes to composer files is that something we should avoid?
Comment #26
longwaveNo, those are our Composer plugins and extensions, those are OK to modify.
Comment #27
quietone commentedI think I did everything in #24, except for 6 and 10.
I also ran spellcheck on core and added changes for
options_test.moduleandOptionsWidgetsTest.php.Adding tag because cspell is being used to fix this.
Comment #28
smustgrave commentedAppears to have a build failure.
But applied patch #27 and searched for "please"
This was good and whoever wrote that kudos haha
There is an instance of please in migrate_drupal test fixture drupal6.php.
Comment #29
ashutosh ahirwal commentedProviding patch for review.
Comment #30
quietone commented@Ashutosh Ahirwal, Thank you for your assistance on this issue!
When making changes to a patch always add an interdiff so reviewers can see what has been changed. See Creating an interdiff.
Starting March 2023, simple rerolls, rebases, or merges will no longer receive issue credit. Only rerolls that address a merge conflict will be credited, and the merge conflict that was resolved must be documented in the text of an issue comment.
To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback.
See the issue credit guidelines for more information.
I am uploading an interdiff.
This issue is using cspell to find instances of "Please" so that should be used to find remaining instances and not grep or ag. Cspell has a defined set of ignored paths in cspell.json. The changes in the latest patch are to ignored files and directories and also reverting the fix made in PhpUnitWarnings (#24-15). See #3122088: [Meta] Remove spelling errors from dictionary.txt and fix them for working with cspell.
I think we need to restart from #27 and check what still needs to be done in #24.
Comment #31
quietone commentedI rewrapped a few lines and made a change for a failing test.
#24
13 - The change needs to be agreed to.
6, 10 - Todo. This is the 'Please wait..." text. It appears in ajax.js, FileModuleTestForm.php, media_library.ui.js and theme-settings.php
Comment #32
quietone commentedHere is the interdiff I forgot to upload in #30.
Comment #33
quietone commentedMaybe this needs a yarn:build first.
Comment #35
quietone commentedChanges to fix the errors.
Comment #36
quietone commentedComment #37
vladimirausLooks good.
Comment #38
quietone commented@VladimirAus, thanks. Did you see the questions in #31 and the issue summary?
I asked in #ux about #24.6 and 10. benjifisher suggested with 'Processing' and dww suggested several humorous options including 'Wait!'. Instead of those I changed the patch to use 'Processing...'.
And do we agree to this change?
Comment #39
vladimirausMy Canon printer says: "Please wait momentarily" 🖨️ 😆
But few suggestion I got from other projects:
But the best I think was "Wait a moment..." instead of "Please wait..." to address 24.6 and 24.10
Comment #41
vladimirausMoved to MR.
Comment #42
quietone commentedI am tagging this for a Usability review to confirm the changes in text, particularly the 'Please wait...'.
Comment #43
quietone commentedComment #44
quietone commentedI am a bit confused here. The MR has removed a change recommended by an active member doing usability reviews, which I think we should follow. The change to ajax.js changed one occurrence of the original 'Please wait' string and not the other without explanation. The MR has also introduced changes to the migrate test fixtures which should not be changed. I have updated the Issue Summary to make that clear.
As far as I can tell the patch in #38 is what should be reviewed.
Comment #45
smustgrave commentedApplying #38 and searching for please. Only occurrences I found came from node_modules (local install), ckeditor5, and text fixtures.
So assuming that's fine.
Added // please to a random file and ran the code-commit script and cspell correctly caught that as a forbidden word..
Comment #46
benjifisherIn #38, @quietone mentioned that we discussed this issue on Slack. Here is the reason I gave for suggesting "Processing" rather than "Wait":
Personally, I get a little annoyed when my machines tell me what to do (wait) even if they try to be polite about it (please wait).
Comment #47
aaronmchaleUsability review
We reviewed this issue at #3357221: Drupal Usability Meeting 2023-05-05, that issue will have a link to the recording.
For the record, the attendees at today's usability meeting were @AaronMcHale, @benjifisher, @rkoller, @simohell, and @yoroy.
The group is supportive of this issue and endorses the effort to remove the word "please".
The group previously reviewed #2969406: Fix incorrect message after resetting password and made a recommendation on what the wording should be for the status message after clicking a one-time login link. See that issue for more rational behind the specific wording of the recommendation. That recommendation is:
"You have logged in with your one-time login link. Set your new password now, it is not possible to use this link a second time."
The group recommends keeping that issue open as it is at RTBC, and recommends leaving it to the core committers to decide which order to commit these two issues in. If this issue is committed first, then that one will need to be rerolled, if that issue is committed first then this issue will need to remove any changes to that message.
Comment #48
aaronmchaleComment #49
benjifisherI am adding a link to #2969406: Fix incorrect message after resetting password in the "Remaining tasks" section.
Comment #51
dpiDespite the MR displaying as green above, it is in fact red: https://www.drupal.org/pift-ci-job/2633148
Looks like new coverage from #3354606: Datetime field name missing from validation error message is affected by the changes here.
Comment #52
longwaveFixed DateTimeFieldTest.
Comment #53
quietone commented@dpi, thanks for checking on this issue. However, the Issue Summary states that is is the patch in #38 that is to be reviewed, not the MR.
Now, it turns out that the patch does not apply anymore. I am setting this to NW and assigning to myself to sort out later.
Comment #54
longwaveTo me it looks like the MR is the more up to date one. I have hidden all the patches and completed the task, confirming that the change from #24.13 is still in the MR. I think the MR is ready to commit but a final review would be welcome.
Comment #55
quietone commentedThe MR may be later but it introduced errors. For one, it is making changes to the drupal7.php migration test fixture. It is also changing the recommendations from the UX review. I think all these are noted in the 5 unresolved comments on the MR.
Comment #56
quietone commentedThis rerolls the patch from #38.
Comment #57
quietone commentedUploading the diff (which I thought I did).
Comment #58
quietone commentedNow repeat #52
Comment #59
smustgrave commentedApplying the patch and searching for "please" seems there are some new ones to replace
web/core/modules/media_library/src/Form
web/core/modules/sdc/src/Twig
web/core/modules/sdc/tests/src/Kernel
web/core/tests/Drupal/Tests/Traits
Ignored the matches from vendor and migrate tests.
Comment #60
nikhil_110 commentedI have updated the patch with latest update suggested by @smustgrave, I would appreciate if someone can review these updates and provide feedback
Comment #61
smustgrave commentedThink this round is good to go.
Comment #62
longwave#60 doesn't apply to 11.x.
Comment #63
quietone commentedHere is the re-roll.
But I discovered there is more work to do here. \Drupal\Tests\options\Functional\OptionsFieldUITest has three asserts as shown.
$assert_session->pageTextNotContains('Please wait');Now that Pleasehas been removed this will always pass.Comment #64
quietone commentedI think the string should be changed to 'Processing...'.
Comment #65
smustgrave commentedSearching for "please" I only find references in fixtures and Migrate tests which I'm assuming is fine
Comment #66
quietone commentedRerolled.
Comment #67
smustgrave commentedThere a chance this could get merged? Seems it stays needing to be rerolled
Comment #68
longwaveThis line can't change, because the message comes from upstream PHPUnit (this is why we added cspell:disable-next-line above it).
Comment #69
longwaveActually, to save this going round again, I can just fix this on commit:
This is not eligible for backport to 10.1.x due to user-facing string changes.
Committed 224c673 and pushed to 11.x. Thanks!
Comment #71
quietone commented@longwave, thank you for fixing that on commit!
Comment #72
quietone commentedThis needs a followup because spellcheck was not run on core. Followup, #3357565: Remove remaining uses of string 'bartik' and 'seven' when referring to the removed themes
Comment #74
wim leersFYI: this is disruptive for contrib. It caused the test suite for https://www.drupal.org/project/big_pipe_sessionless to fail, because it was explicitly testing an edge case that resulted in a call to
_drupal_log_error(), which generated a message that includes this "please".