Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 305144

ConfigEntity based lists with items containing non-ascii characters are not sorted correctly

$
0
0

Problem/Motivation

Many efforts have been made to make Drupal 8 a great multilingual system. However, content types are never properly sorted when translations contain accentuated characters.

Content types are sorted using asort. Maybe we could set the locale beforehand.

Steps to reproduce

Install Drupal 8
Enable the following modules

  • Configuration Translation
  • Content Translation
  • Interface Translation
  • Language

Add a language (French in the example)
Add a two content types (Show and Zone)
Translate the Show content type to Émission
Switch languages (fr/admin/structure/types)

Expected behavior

To have a list in this order

  • Article
  • Basic page
  • Émission
  • Zone

What happened instead

List was in this order:

  • Article
  • Basic page
  • Zone
  • Émission

Proposed resolution

Use PHP Collator class to sort the items with a fallback when PHP intl extension is not installed

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Dependency evaluation

Symfony polyfill for intl's ICU-related data and classes

Repositoryhttps://github.com/symfony/polyfill-intl-icu
Release cycleSymfony Roadmap
Security policies

Symfony security policies

Symfony generally provides 8 months of security coverage for minor releases other than their LTS version. Two of the Drupal core framework managers (alexpott and larowlan) are members of the Symfony Security Team in order to facilitate backports of security issues that affect supported versions of Drupal when necessary.

Security issue reportingsecurity [at] symfony.com
Contact(s)fabpot, MichaelCu (security)
Other dependenciesnone

Viewing all articles
Browse latest Browse all 305144

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>