Skip to content
Snippets Groups Projects
Commit c1c55167 authored by Al Munnings's avatar Al Munnings Committed by Al Munnings
Browse files

Ensure ascii on items fallback

parent b5548bb9
Branches
No related tags found
1 merge request!120Ensure ascii on items fallback
Pipeline #464407 passed
......@@ -19,6 +19,8 @@ use Drupal\Core\Config\ImmutableConfig;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use function Symfony\Component\String\u;
/**
* Language inflector service.
*/
......@@ -174,7 +176,8 @@ class LanguageInflector {
// Failsafe pluralize if singular and plural are the same.
if ($plural === $singular) {
$plural .= '_' . $this->t('items');
$suffix = (string) $this->t('items');
$plural .= '_' . u($suffix)->ascii()->lower()->toString();
}
return $plural;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment