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 #582534: Free tagging vocabularies: Treatment of comma in Chinese and Unicode.
Remaining tasks
Decide if this should be done.
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #1
magico commentedThe current situation can be considered a bug, because in a specific language it will not work.
OTOH, for a long time the "comma" is used to separate lists and someone could have the temptation to mark this as "won't fix".
Drupal should have something to help hoosing the correct list element separator.
Comment #2
coreb commentedMoving out of the "x.y.z" queue to a real queue.
Comment #3
pasqualleComment #4
plachComment #5
hanno commentedComment #18
quietone commentedThis was discussed at a bugsmash group triage meeting in relation to #582534: Free tagging vocabularies: Treatment of comma in Chinese and Unicode 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.
Comment #19
penyaskitoCrossposting 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.
Comment #20
quietone commentedCrossposting 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. #3076171: Provide a new library to replace jQuery UI autocomplete. I have updated the other issue.
I wonder if this should be a Meta and the other issue a child?
Comment #21
penyaskitoNot sure how that's related, AFAIK core\misc\autocomplete.es6.js is Drupal space, not jquery ui.
Comment #22
gábor hojtsyTo 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 :)