Problem/Motivation

See #2566503: [meta] Replace remaining !placeholder for Non-URL HTML outputs only

modules/language/src/Element/LanguageConfiguration.php:      LanguageInterface::LANGCODE_SITE_DEFAULT => t("Site's default language (!language)", array('!language' => static::languageManager()->getDefaultLanguage()->getName())),
modules/language/src/Plugin/Derivative/LanguageBlock.php:        $this->derivatives[$type]['admin_label'] = t('Language switcher (!type)', array('!type' => $info[$type]['name']));

Proposed resolution

Remaining tasks

Agree that removing HTML support makes sense.

User interface changes

None

API changes

Date format strings no longer support adding HTML using the \ escape character.

Data model changes

None

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because at the moment date formats support HTML but it is escaped
Issue priority Major because part of the critical to remove !placeholder
Disruption Disruptive for existing sites that are adding HTML to date formats. If HTML is required in a formatted date then the site should implement a custom field formatter to do this.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner created an issue. See original summary.

nevergone’s picture

Status: Active » Needs review
FileSize
984 bytes
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

It is perfect!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

When reviewing this I debated whether or not we should be getting the translated language name but that would be a change and therefore out of scope.

Committed ce3f378 and pushed to 8.0.x. Thanks!

  • alexpott committed ce3f378 on 8.0.x
    Issue #2571947 by nevergone: Remove !placeholder in language module
    

Status: Fixed » Needs work

The last submitted patch, 2: 2571947-remove-placeholder-language-module.patch, failed testing.

nevergone’s picture

Status: Needs work » Fixed

Already committed.
Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.