diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-01-18 12:19:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 12:19:31 +0100 |
| commit | 226da3b3718ce3a1ad8774e25b7855c2ae4fb546 (patch) | |
| tree | 539af6f40bdef088f9fe7c4921a62a1d09eae286 /MediaBrowser.Server.Implementations/HttpServer | |
| parent | 8d052a6cb17421e6c7774bafc6957029f3c9d4ae (diff) | |
| parent | 90390772869495228793e1b29db20c8741a309de (diff) | |
Fix zh-CN subtitle language display (#15947)
The DisplayTitle property was using .NET's CultureInfo.GetCultures(NeutralCultures)
to resolve language display names. Since zh-CN is a specific culture (not neutral),
it would fall back to the base 'zh' code, resulting in generic 'Chinese' instead
of 'Chinese (Simplified)'.
This change adds a LocalizedLanguage property to MediaStream that gets populated
via LocalizationManager.FindLanguageInfo() when streams are retrieved from the
database. This leverages Jellyfin's existing iso6392.txt mappings which correctly
map zh-CN to 'Chinese (Simplified)'.
The same pattern is already used for other localized strings like LocalizedDefault
and LocalizedExternal.
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
0 files changed, 0 insertions, 0 deletions
