jellyfin/MediaBrowser.Model
Bond-009 226da3b371
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.
2026-01-18 12:19:31 +01:00
..
2021-10-26 13:56:30 +02:00
2020-02-23 12:11:43 +01:00
2025-05-04 08:40:34 -06:00
2025-03-25 16:45:00 +01:00
2026-01-14 18:55:47 +01:00
2025-01-25 20:05:15 -05:00
2025-03-31 17:46:21 -06:00
2020-08-20 15:17:42 +08:00
2022-12-05 15:00:20 +01:00
2026-01-14 18:55:47 +01:00