Comma separated lists should obey regional settings

Created on 4 August 2006, over 18 years ago
Updated 20 February 2023, about 2 years ago

Problem/Motivation

While tagging content, I realised that Drupal uses the comma , for creating comma-separated lists. In Arabic, this comma is used only to separate digits in numbers bigger than 1,000, so they become easy to read (1,000,000,000 for example). The comma used to separate sentences and phrases in Arabic is ، (Arabic Comma, Unicode 060C, if this helps).

Steps to reproduce

Proposed resolution

Once agreed to work on other issues such as πŸ› Free tagging vocabularies: Treatment of comma in Chinese and Unicode Active .

Remaining tasks

Decide if this should be done.

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

9.5

Component
Language systemΒ  β†’

Last updated about 11 hours ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡ͺπŸ‡¬Egypt gharbeia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This was discussed at a bugsmash group triage meeting in relation to πŸ› Free tagging vocabularies: Treatment of comma in Chinese and Unicode Active by padanski and myself. We agreed that it would be helpful to have a clear decision if this is something Drupal should do.

    I will ask in #multilingual.

  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

    Crossposting with #582534:

    Looking at core\misc\autocomplete.es6.js, if you go to autocompleteSplitValues you'll see a hardcoded ",", so I guess this is still an issue.
    IMHO this is a bug. We should support those OOTB, or at least provide easy workarounds (e.g. settings) around it.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Crossposting as well.

    @penyaskito, thanks for commenting. This was discussed in a bugsmash group triage meeting with Pandaski. catch and myself. catch noted that the replacement for JQuery UI autocomplete should be checked to see if it has the same problem. πŸ“Œ Provide a new library to replace jQuery UI autocomplete Needs work . I have updated the other issue.

    I wonder if this should be a Meta and the other issue a child?

  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

    Not sure how that's related, AFAIK core\misc\autocomplete.es6.js is Drupal space, not jquery ui.

  • πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

    To support this, we would need to have a language level config IMHO for "List separator", which defaults to the comma we used so far. Sites could customize this then. We can also ship with specific translations for the separators in the standard language list if the listed Arabic comma is more common used on Arabic contexts in general.

    On the other hand, is autocomplete the only component that deals with comma separated lists? The server side PHP support would also need to support whatever per language value is set then and be super aware of the language context then it is using :)

Production build 0.71.5 2024