[PR #11172] feat(i18n): transliterate item name before sorting and filtering #12769

Closed
opened 2026-02-07 07:01:27 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11172

State: closed
Merged: Yes


Changes
Since Jellyfin assume user will use a latin-based language as media title, it will be a problem for CJK language users. This patch attempted to use a Transliterator to transliterate the title if the SortName still contains non-ascii characters at the end of ModifySortChunks().

Issues
Fixes https://github.com/jellyfin/jellyfin/issues/3202

Note
Library will need to be re-scanned to make the existing items uses the new SortName working.

Screenshot when the patch gets applied

Showcase the sort issue is gone: (Note: 赌博默示录 du bo mo shi lu < 前目的地 qian mu di di < 子弹列车 zi dan lie che)

image

Showcase of the NameStartsWith filter on the right side: (Note: D is selected, 赌博默示录 du bo mo shi lu is shown)

image

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11172 **State:** closed **Merged:** Yes --- **Changes** Since Jellyfin assume user will use a latin-based language as media title, it will be a problem for CJK language users. This patch attempted to use a `Transliterator` to transliterate the title if the `SortName` still contains non-ascii characters at the end of `ModifySortChunks()`. **Issues** Fixes https://github.com/jellyfin/jellyfin/issues/3202 **Note** Library will need to be re-scanned to make the existing items uses the new SortName working. **Screenshot when the patch gets applied** Showcase the sort issue is gone: (Note: 赌博默示录 `du bo mo shi lu` < 前目的地 `qian mu di di` < 子弹列车 `zi dan lie che`) ![image](https://github.com/jellyfin/jellyfin/assets/10095765/1ba47f0c-7ead-46be-96dd-96b36fcebf82) Showcase of the `NameStartsWith` filter on the right side: (Note: `D` is selected, 赌博默示录 `du bo mo shi lu` is shown) ![image](https://github.com/jellyfin/jellyfin/assets/10095765/abcac750-c37e-45ae-9df1-4fcd59df7b2e)
OVERLORD added the pull-request label 2026-02-07 07:01:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12769