mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
feat(i18n): transliterate item name before sorting (#11172)
This commit is contained in:
@@ -964,7 +964,13 @@ namespace MediaBrowser.Controller.Entities
|
||||
AppendChunk(builder, isDigitChunk, name.Slice(chunkStart));
|
||||
|
||||
// logger.LogDebug("ModifySortChunks Start: {0} End: {1}", name, builder.ToString());
|
||||
return builder.ToString().RemoveDiacritics();
|
||||
var result = builder.ToString().RemoveDiacritics();
|
||||
if (!result.All(char.IsAscii))
|
||||
{
|
||||
result = result.Transliterated();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public BaseItem GetParent()
|
||||
|
||||
Reference in New Issue
Block a user