1
0
şunun yansıması https://github.com/nextcloud/server.git eşitlendi 2024-08-23 05:56:02 +02:00

Respect user locale in natural sort comparator

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Bu işleme şunda yer alıyor:
Christoph Wurst 2019-01-22 10:14:32 +01:00
ebeveyn f31b82b8c9
işleme f0265cccf2
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: CC42AC2A7F0E56D8

Dosyayı Görüntüle

@ -2082,12 +2082,9 @@ OC.Util = {
if (aNum == aa[x] && bNum == bb[x]) {
return aNum - bNum;
} else {
// Forcing 'en' locale to match the server-side locale which is
// always 'en'.
//
// Note: This setting isn't supported by all browsers but for the ones
// Note: This locale setting isn't supported by all browsers but for the ones
// that do there will be more consistency between client-server sorting
return aa[x].localeCompare(bb[x], 'en');
return aa[x].localeCompare(bb[x], OC.getLanguage());
}
}
}