mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 11:22:10 +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. |
||
|---|---|---|
| .. | ||
| ChapterInfo.cs | ||
| CollectionTypeOptions.cs | ||
| DeinterlaceMethod.cs | ||
| DownMixStereoAlgorithms.cs | ||
| EncoderPreset.cs | ||
| ExtraType.cs | ||
| HardwareAccelerationType.cs | ||
| IHasProviderIds.cs | ||
| IHasShares.cs | ||
| ImageType.cs | ||
| IsoType.cs | ||
| LibraryUpdateInfo.cs | ||
| LocationType.cs | ||
| MediaAttachment.cs | ||
| MediaStream.cs | ||
| MediaStreamType.cs | ||
| MediaUrl.cs | ||
| MetadataField.cs | ||
| MetadataProvider.cs | ||
| ParentalRating.cs | ||
| ParentalRatingEntry.cs | ||
| ParentalRatingScore.cs | ||
| ParentalRatingSystem.cs | ||
| PersonType.cs | ||
| PlaylistUserPermissions.cs | ||
| ProviderIdsExtensions.cs | ||
| SeriesStatus.cs | ||
| TonemappingAlgorithm.cs | ||
| TonemappingMode.cs | ||
| TonemappingRange.cs | ||
| TrailerType.cs | ||
| UserDataSaveReason.cs | ||
| Video3DFormat.cs | ||
| VideoType.cs | ||
| VirtualFolderInfo.cs | ||