Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0
Issue links:
Description:
The constant \Drupal\Core\StringTranslation\PluralTranslatableMarkup::DELIMITER
used for splitting plural strings.
As this functionality used in low level component it is defined there now \Drupal\Component\Gettext\PoItem::DELIMITER
All code using PluralTranslatableMarkup::DELIMITER
or LOCALE_PLURAL_DELIMITER
should use constant \Drupal\Component\Gettext\PoItem::DELIMITER
Before
if (strpos($value, PluralTranslatableMarkup::DELIMITER) !== FALSE) {
// Process plural string.
}
After
if (strpos($value, PoItem::DELIMITER) !== FALSE) {
// Process plural string.
}
Impacts:
Module developers