Unsorted list of ISO codes
Since TYPO3 7 is it now mandatory to set an ISO code for language records (see #61542). However the (localized) list of codes is "unsorted":
this makes it tedious to set.
[TASK] Sort the list of ISO codes
Reviewed-by: Frank Nägler <firstname.lastname@example.org>
Tested-by: Frank Nägler <email@example.com>
Reviewed-by: Andreas Fernandez <firstname.lastname@example.org>
Tested-by: Andreas Fernandez <email@example.com>
#1 Updated by Mathias Brodala about 4 years ago
This is a more general issue with the
special feature of
select and also affects e.g. the list of tables in user group access management.
I already talked to Christian about this and right now there is no clean way to fix this since for proper sorting we need
- Perform translations as early as possible, otherwise sorting on fixed and translated values won't work
- Integrate some kind of locale-aware sorting, otherwise e.g. "Ä" will come after "z" as can be seen in the file list module (review pending)
#3 Updated by Xavier Perseguers about 4 years ago
Yes this is a general issue but we cannot sort it "automatically" at the TCA level, since the list is hardcoded in a given order and we cannot infer it was given that way by being "sorted" on English. Or we really have to introduce a an option to TCA to ask the form engine to sort the hardcoded list for us, depending on the actual language.