API page: https://api.drupal.org/api/drupal/core%21modules%21system%21system.token...
The date tokens' descriptions all say 'a date':
> 'description' => t("A date in 'short' format. (%date)", [
What date? If you look at hook_tokens(), it's the current date, but the description should make that clear.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3380239
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:
- 3380239-date-token-descriptions
changes, plain diff MR !5411
Comments
Comment #3
stephencamilo commentedHello @joachim,
Using 'a date' is suitable since the format can be applied to any date, not exclusively the current date.
I am planning to mark this issue as resolved. However, if you have an alternate input, please don't hesitate to share.
Thank you!
Comment #4
cilefen commented@joachim is a prolific core contributor so it probably is adequately described.
Comment #5
cilefen commentedBy “it” I mean “this issue”.
Comment #6
joachim commentedThe various date tokens insert the current date, using the particular format -- at least that's what hook_tokens() looks like it's doing.
Comment #7
flusteredlondon commentedI'm working on this at DrupalCon 2023
Comment #8
flusteredlondon commentedI tried to work on this, but the existing fork does not install correctly - looks like an issue with composer dependencies.
Should I ignore the fork and make another?
------------------------------
Comment #9
anweshasinha commentedHi,
I have created a patch for the issue mentioned where I have changed the descriptions in system_token_info(). Could you please review it and provide the feedback.
Comment #10
joachim commentedLatest patch LGTM. Thanks!
Comment #11
xjmPlease remember to queue tests and verify there's a passing run before RTBCing stuff. I am queuing tests now.
Comment #12
xjmActually, this is not quite committable yet. It needs a small grammar fix for each string:
All of these need to begin with "the".
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other improvements is not recommended and will not receive credit.)
Comment #13
pradhumanjain2311 commentedMade changes as per comment #12.
Comment #14
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #17
sourabhjainComment #18
xjmRemember to hide old patch files when converting to an MR. Thanks!
Comment #20
smustgrave commentedRebasing as the MR didn't have the gitlab stuff.
Reroll was incorrect it seems feedback from #12 was left out, which was included in #13.
Just a reminder this is still a novice tagged issue.
Comment #21
smustgrave commentedEdit seems it was addressed, not sure it wasn't showing up at first..
Comment #22
xjmThank @stephencamilo for your assistance on this issue.
Please take note of the paragraph in #14:
Simple rerolls, rebases, merges, or conversions to merge requests no longer receive issue credit. Only updates that address a merge conflict or that include other fixes will be credited. For merge conflicts, the merge conflict that was resolved must be documented in the text of an issue comment.
In general, we ask that contributors not convert issues to merge requests unless they are making other fixes. To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback, or provide a review. Thanks!
See the issue credit guidelines for more information.
Comment #23
xjmCrediting @joachim for the initial issue report, @anweshasinha for the original patch, @pradhumanjain2311 for improvements, @smustgrave for fixing the MR, and myself and @cilefen for issue management.
In the future, when using a patch workflow, provide interdiffs for your patches. That allows reviewers to evaluate your changes. (Or, better, use merge requests so interdiffs are not needed.) Thanks!
Comment #24
xjmThanks all. I reviewed it locally with
git diff --color-wordsto validate that all the changes are just this improvement.I also checked to see if there were any other instances of this wording in core. There are two other strings, but in those cases they're referring to generic dates:
Finally, I read
core/modules/system/system.tokens.incand confirmed that there are no other issues with date token info that I can see.However, there is still a small problem on the MR. It says "The Current date". "Current" should be lowercase: "The current date."
Comment #25
sourabhjainHi @xjm @smustgrave
I intentionally deferred work on these issues. All the updates were made on November 14, 2023, and I've been addressing them sequentially in the Drupal issue queue without initially considering the tags assigned to each. I acknowledge this oversight and apologize for any confusion. Moving forward, I will ensure to prioritize and address issues based on their respective tags.
Comment #27
keshav patel commentedChanges made as per comment #24 in MR. Please review.
Comment #28
smustgrave commentedCurrent has been lowercased
Comment #31
xjmReviewed locally one last time with
git diff --color-words.Committed to 11.x and 10.2.x as a minor-only UI string improvement. Thanks!
Comment #33
alexpott