mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-21 01:03:00 +01:00
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. |
||
|---|---|---|
| .. | ||
| Jellyfin.Api.Tests | ||
| Jellyfin.Common.Tests | ||
| Jellyfin.Controller.Tests | ||
| Jellyfin.Extensions.Tests | ||
| Jellyfin.LiveTv.Tests | ||
| Jellyfin.MediaEncoding.Hls.Tests | ||
| Jellyfin.MediaEncoding.Keyframes.Tests | ||
| Jellyfin.MediaEncoding.Tests | ||
| Jellyfin.Model.Tests | ||
| Jellyfin.Naming.Tests | ||
| Jellyfin.Networking.Tests | ||
| Jellyfin.Providers.Tests | ||
| Jellyfin.Server.Implementations.Tests | ||
| Jellyfin.Server.Integration.Tests | ||
| Jellyfin.Server.Tests | ||
| Jellyfin.XbmcMetadata.Tests | ||
| coverletArgs.runsettings | ||
| Directory.Build.props | ||