Task #69929

Unsorted list of ISO codes

Added by Xavier Perseguers almost 4 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-09-18
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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.

unsorted.png View (63.2 KB) Xavier Perseguers, 2015-09-18 09:43


Related issues

Related to TYPO3 Core - Feature #61542: Add two-digit ISO 639-1 keys to sys_language Closed 2014-09-11

Associated revisions

Revision a87e2b29 (diff)
Added by Xavier Perseguers almost 4 years ago

[TASK] Sort the list of ISO codes

Resolves: #69929
Related: #61542
Releases: master
Change-Id: I002628c9741860d47c6fc6921ffb08b8ed256a70
Reviewed-on: http://review.typo3.org/43412
Reviewed-by: Frank Nägler <>
Tested-by: Frank Nägler <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>

History

#1 Updated by Mathias Brodala almost 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

  1. Perform translations as early as possible, otherwise sorting on fixed and translated values won't work
  2. 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)

#2 Updated by Gerrit Code Review almost 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43412

#3 Updated by Xavier Perseguers almost 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.

#4 Updated by Gerrit Code Review almost 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43412

#5 Updated by Xavier Perseguers almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF