jellyfin/MediaBrowser.Model
baka0815 5fc1b1c862
Translate the ISO-639-2/B codes to ISO-639-2/T. (#13068)
* Translate the ISO-639-2/B codes to ISO-639-2/T.

This enables 19 additional languages to be displayed correctly.

* Convert the 2-dimensional array to a dictionary

* Added the French language to the list of ISO-639-2/B codes

* Don't change the property, use a local variable instead.

* When creating the MediaStream in the MediaStreamRepository ensure that the ISO 639-2/T (f.e. deu) code is used for the language as that is the one the .NET culture info knows.
The other code is most likely the ISO 639-2/B code (f.e. ger) which is unknown to the .NET culture info and will result in just displaying the code instead of the display name.

* Move the substitution of ISO 639-2/B to /T to the localization manager.
Some language (like Chinese) have multiple entries in the iso6392.txt file (f.e. zho|chi|zh|..., zho|chi|zh-tw|...) but the conversation between /T and /B is the same so use .TryAdd.

* Change the method definition from GetISO6392TFromB to TryGetISO6392TFromB and return true if a case was found.

* Add unit tests for TryGetISO6392TFromB.
2025-04-07 21:29:12 -06:00
..
Activity Fixed namespaces 2025-03-25 16:45:00 +01:00
ApiClient
Branding Preserve SplashscreenLocation when updating branding config (#13756) 2025-03-31 17:46:01 -06:00
Channels
Collections
Configuration feat: allow grouping shows into collections (#13236) 2025-03-28 06:54:12 -06:00
Cryptography
Devices
Dlna Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
Drawing Use MediaTypeNames where possible (#13440) 2025-01-26 21:06:24 -07:00
Dto Explicitly set default value for enums used in API models (#13821) 2025-03-31 17:43:31 -06:00
Entities Translate the ISO-639-2/B codes to ISO-639-2/T. (#13068) 2025-04-07 21:29:12 -06:00
Extensions Use pattern matching for null checks (#13793) 2025-03-31 17:38:25 -06:00
Globalization Translate the ISO-639-2/B codes to ISO-639-2/T. (#13068) 2025-04-07 21:29:12 -06:00
IO Add ability to provide search pattern 2025-03-11 21:04:12 +00:00
Library Fixed namespaces 2025-03-25 16:45:00 +01:00
LiveTv Make ReadInputAtNativeFramerate configurable for M3U tuner (#13773) 2025-04-03 09:18:00 -06:00
Lyrics Add API support for ELRC word-based lyrics (#12941) 2025-04-07 08:59:18 -06:00
MediaInfo
MediaSegments Explicitly set default value for enums used in API models (#13821) 2025-03-31 17:43:31 -06:00
Net Use MediaTypeNames where possible (#13440) 2025-01-26 21:06:24 -07:00
Notifications
Playlists make playlist creation private by default (#12853) 2024-11-17 08:13:01 -07:00
Plugins chore: fix spelling 2025-01-25 20:05:15 -05:00
Properties
Providers Merge pull request #13175 from Shadowghost/external-url-providers 2025-03-13 21:08:18 -04:00
Querying Cleanup ItemFields (#13818) 2025-03-31 17:46:21 -06:00
QuickConnect
Search Explicitly set default value for enums used in API models (#13821) 2025-03-31 17:43:31 -06:00
Serialization
Session Add profile condition to limit the number of streams (#13583) 2025-03-28 06:51:22 -06:00
Subtitles
SyncPlay
System Remove deprecated GetWakeOnLanInfo endpoint 2025-02-22 10:23:33 +01:00
Tasks Implement TaskTriggerInfoType enum (#12783) 2024-12-01 17:08:37 -07:00
Updates
Users Rework parental ratings (#12615) 2025-03-30 21:51:54 -06:00
MediaBrowser.Model.csproj Update projects to .NET 9 (#13023) 2024-11-16 10:11:01 -07:00