Problem/Motivation

'The following files could not be loaded: @dependencies' is not registered as a source text for user interface translation.

Steps to reproduce

  1. Choose installation language "English, British".
  2. Install Drupal with the standard profile.
  3. Go to /admin/config/regional/translate.
  4. Search 'The following files could not be loaded'.
  5. No result found.

Proposed resolution

Replace template literal with string literal.
A template literal is not supported locale.module.

Remaining tasks

User interface changes

No.

API changes

No.

Data model changes

No.

Release notes snippet

Issue fork drupal-3494029

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

tom konda created an issue. See original summary.

tom konda’s picture

Title: Source text is not registered because of template literal in /misc/ajax.js » Source text is not registered because of template literal in core/misc/ajax.js
Status: Active » Needs work

tom konda’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Small change but probably safe to add test coverage

tom konda’s picture

Status: Needs work » Needs review

Add testing code for template literal.
Please review.

smustgrave’s picture

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

So tests appear to be passing without the change

Could we something simple in Locale like the steps mentioned?

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.