https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28245
Bug ID: 28245
Summary: Language dropdown in advanced search should be sorted
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Templates
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
The Language dropdown in the advanced search should be sorted. It should be
sorted according to the locale of the user.
For instance, sorting by iso 629-2 codes favours English. Take for example
"German". The code is "ger" and in English it's "German" but in French it's
"Allemand", and in German it's "Deutsch". The alphabetical sort should be done
to align with the expectations of the language of the user/interface.
I'm not sure what to do about non-alphabetic languages like Chinese that don't
do alphabetic sorting...
Also, this is neat https://perldoc.perl.org/Unicode::Collate::Locale. A core
module which adds support for locales. That said, sort for French is weird. The
first is normal sort() and the second is Unicode::Collate::Locale sort.
$VAR1 = [
'a',
'e',
'ç',
'é',
'ï'
];
$VAR1 = [
'a',
'ç',
'ï',
'é',
'e'
];
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/