Issue summary updated as of comment #10
Problem/Motivation
It seems there is a bug in the translation system
Tested with
Drupal Core Vanilla 8.6.0 on simpletest.me
Affected string: Default long date On Date- and Time format page
Steps to reproduce
Install Drupal in English
Add German
And /Or French
Change the Default language of the site.
The Description string is still as well as the heading pattern on the date format edit page ist still English
This doesn't happen if you install Drupal in just one language. because the translation is available.
Maybe cache should be cleared after a new translation is installed automatically to solve this bug.
Proposed resolution
Locate the mentioned strings and use one of the translation methods.
Remaining tasks
The date format edit page still isn't being translated.
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | interdiff_24-26.txt | 608 bytes | ankit_rathore |
| #26 | 2998133-26.patch | 2.2 KB | ankit_rathore |
| #25 | 2998133-25.patch | 2.08 KB | Aadhar_Gupta |
| #24 | interdiff_23-24.txt | 690 bytes | ankit_rathore |
| #24 | 2998133-24.patch | 2.19 KB | ankit_rathore |
Issue fork drupal-2998133
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:
Comments
Comment #2
joachim namysloComment #8
quietone commentedI tested this on Drupal 9.5.x and can confirm that the translations for the name of the date format are not displayed.
This also needs an issue summary update, see Write an issue summary for an existing issue for guidance. That is suitable for a novice, adding tag.
Comment #9
wagnerarao commentedHi, let me work on this!
Comment #10
wagnerarao commentedComment #11
wagnerarao commentedPlease kindly review this patch. I wasn't able to fix the translation in the heading pattern on the date format edit page, but is working on the name of the date.
Comment #12
wagnerarao commentedComment #13
dishakatariya commentedComment #14
dishakatariya commentedComment #15
anjali rathodComment #16
anjali rathodPatch #11 applies successfully. Attaching screenshot below.
Thanks all!
Changing the status to RTBC .
Comment #17
quietone commented@Anjali Rathod, thanks for the interest in this patch and testing. For Drupal there are other things that need to happen before a patch can be RTBC. There are several steps, or gates, that an issue must pass before it is marked RTBC. For most issues following step 10 in the Review a patch or merge request task of the Contributor guide is sufficient. The complete list of core gates has more topics. Also, check the tags on the issue and make sure they are complete.
s/t/$this->t/
Comment #18
pooja saraah commentedAddressed the comment #17
Thanks @quietone for the suggestion
Attached patch against Drupal 9.4.x
Comment #20
amanshukla6158 commentedAttached patch against Drupal 10.1.x
Comment #21
joachim namysloComment #22
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue under control, following Review a patch or merge request as a guide.
Next step would be to add a test case showing the issue.
Comment #23
sahil.goyal commentedFixing the CCF in #20, updating patch along with interdiff.
Comment #24
ankit_rathore commentedtrying to fix ccf #23
34 | ERROR | Parameter $time is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
by describing $time in comment
Comment #25
Aadhar_Gupta commentedFixing CCF error in #24
Comment #26
ankit_rathore commentedfixed ccf in #24
Comment #27
smustgrave commentedUpdating credit.
Comment #28
kristen polI’m triaging for DrupalCon mentored contribution and reviewing as this issue is tagged novice.
*******
Please leave this issue for DrupalCon mentored contribution as a possible first time issue.
*******
Next step is to review and work on the patch provided so it’s not failing.
Comment #29
kristen polTag normalization happening:)