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

Issue fork drupal-2998133

Command icon 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

Joachim Namyslo created an issue. See original summary.

joachim namyslo’s picture

Title: t-function missing on /admin/config/regional/date-time/formats/manage/long/translate/xx/edit » String doesn't get change when additional Languages istalled afterwards
Issue summary: View changes

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Component: user interface text » config_translation.module
Issue tags: +Bug Smash Initiative, +Needs issue summary update, +Novice

I 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.

wagnerarao’s picture

Assigned: Unassigned » wagnerarao

Hi, let me work on this!

wagnerarao’s picture

Issue summary: View changes
wagnerarao’s picture

StatusFileSize
new609 bytes

Please 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.

wagnerarao’s picture

Assigned: wagnerarao » Unassigned
Status: Active » Needs review
dishakatariya’s picture

Assigned: Unassigned » dishakatariya
dishakatariya’s picture

Assigned: dishakatariya » Unassigned
anjali rathod’s picture

Assigned: Unassigned » anjali rathod
anjali rathod’s picture

Assigned: anjali rathod » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new109.97 KB
new145.91 KB
new111.13 KB

Patch #11 applies successfully. Attaching screenshot below.
Thanks all!
Changing the status to RTBC .

quietone’s picture

Status: Reviewed & tested by the community » Needs work

@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.

+++ b/core/modules/system/src/DateFormatListBuilder.php
@@ -63,7 +63,7 @@ public function buildHeader() {
+    $row['label'] = t($entity->label());

s/t/$this->t/

pooja saraah’s picture

StatusFileSize
new616 bytes
new548 bytes

Addressed the comment #17
Thanks @quietone for the suggestion
Attached patch against Drupal 9.4.x

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

amanshukla6158’s picture

Status: Needs work » Needs review
StatusFileSize
new721 bytes

Attached patch against Drupal 10.1.x

joachim namyslo’s picture

Title: String doesn't get change when additional Languages istalled afterwards » String doesn't get changed when additional Languages istalled afterwards
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests

This 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.

sahil.goyal’s picture

StatusFileSize
new2.08 KB
new1.81 KB

Fixing the CCF in #20, updating patch along with interdiff.

ankit_rathore’s picture

StatusFileSize
new2.19 KB
new690 bytes

trying to fix ccf #23
34 | ERROR | Parameter $time is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)

by describing $time in comment

Aadhar_Gupta’s picture

Status: Needs work » Needs review
StatusFileSize
new2.08 KB

Fixing CCF error in #24

ankit_rathore’s picture

Status: Needs review » Needs work
StatusFileSize
new2.2 KB
new608 bytes

fixed ccf in #24

smustgrave’s picture

Updating credit.

kristen pol’s picture

Issue tags: +Pittsburgh 2023

I’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.

kristen pol’s picture

Issue tags: -Pittsburgh 2023 +Pittsburgh2023

Tag normalization happening:)

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.