aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Localization/LocalizationManager.cs
AgeCommit message (Collapse)Author
4 daysFix language display for ISO 639-2-only codes (e.g. mul, und)Lasath Fernando
LoadCultures() in LocalizationManager skipped all iso6392.txt entries without a two-letter ISO 639-1 code, dropping 302 of 496 languages including mul (Multiple languages), und (Undetermined), mis (Uncoded languages), zxx, and many real languages like Achinese, Akkadian, etc. This caused FindLanguageInfo() to return null for these codes, which meant: - ExternalPathParser could not recognize them as valid language codes in subtitle filenames, so the Language field was never set - DisplayTitle fell back to the raw code string (e.g. "Mul") Fix by allowing entries without two-letter codes to be loaded with an empty TwoLetterISOLanguageName. Also set LocalizedLanguage in ProbeResultNormalizer for ffprobe-detected streams (the DB repository path was already handled on master).
2025-12-28Backport pull request #15826 from jellyfin/release-10.11.zcvium
add CultureDto cache Original-merge: 1805f2259f44aba0ca97ff0de2ad0b0a3614fa03 Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2025-12-28Backport pull request #15793 from jellyfin/release-10.11.zShadowghost
Prefer US rating on fallback Original-merge: 156761405e7fd5308474a7e6301839ae7c694dfa Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2025-07-30Further refinement of BCP 47 language labeling supportdyphire
2025-05-04Cleanup file related code (#14023)Bond-009
2025-04-07Translate the ISO-639-2/B codes to ISO-639-2/T. (#13068)baka0815
* 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-03-30Rework parental ratings (#12615)Tim Eisele
2025-03-02Backport pull request #13639 from jellyfin/release-10.10.zIDisposable
Support more rating formats Original-merge: 4f94d23011c4af755e6e05cc42f47befc7e43fcb Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Bond_009 <bond.009@outlook.com>
2025-01-25chore: fix spellingJosh Soref
* a * acceleration * addition * altogether * api clients * artist * associated * bandwidth * cannot * capabilities * case-insensitive * case-sensitive * configuration * delimiter * dependent * diacritics * directors * enable * explicitly * filters * finish * have * hierarchy * implicit * include * information * into * its * keepalive * localization * macos * manual * matching * metadata * nonexistent * options * overridden * parsed * parser * playback * preferring * processes * processing * provider * ratings * retrieval * running * segments * separate * should * station * subdirectories * superseded * supported * system * than * the * throws * transpose * valid * was link: forum or chat rooms Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-05-13Backport pull request #11541 from jellyfin/release-10.9.zcrobibero
Fix migration with special Rating Original-merge: efba619acbe4849205874a464511ffcfd4aad2ba Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-04-17Support age in LocalizationManager.GetRatingLevel (#11367)Niels van Velzen
2023-10-11Multiple Stream changesBond_009
* Remove useless MemoryStream in DlnaHttpClient * Use HttpContent.ReadFromJsonAsync extension * Call ConfigureAwait for IAsyncDisposable * Use HttpContent.CopyToAsync where possible
2023-04-06Simplify linq expressions (use All)Stepan Goremykin
2023-03-09Extend language code handlingShadowghost
2023-02-20Apply review suggestionsShadowghost
2023-02-20Fix typo and migration descriptionShadowghost
2023-02-20Add default rating selectionsShadowghost
2023-02-20Properly build where clause for rating checksShadowghost
2023-02-20Overhaul content ratingsShadowghost
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-12-05Replace == null with is nullBond_009
2022-11-15Change the Translation of "Simplified Chinese"TheBlueKingLP
Change the translation of "Simplified Chinese" from "汉语 (简化字)" to "汉语 (简体字)"
2022-11-13Correcting LocalizationOptionTheBlueKingLP
Changing from 体(the simplified variant) to 體(the traditional variant) in the LocalizationOption for the "Traditional Chinese" language.
2022-10-28Backport pull request #8499 from jellyfin/release-10.8.zcvium
chore: add Basque to the list of localization options Original-merge: d8e53f35a51af6f9709841222d9a668d7be73e8c Merged-by: Claus Vium <cvium@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2022-02-14Fix some warningsBond_009
2021-12-19Use static lambdascvium
2021-11-19Update LocalizationManager.cs (#6839)WWWesten
2021-11-02Update LocalizationManager.csWWWesten
2021-11-01Update LocalizationManager.csWWWesten
2021-08-15Minor improvementsBond_009
2021-08-10Merge remote-tracking branch 'upstream/master' into localization-testDavid Ullmer
2021-08-10Minor improvementsDavid Ullmer
2021-08-10Revert "Refactor LocalizationManager and remove dead method"David Ullmer
This reverts commit db2b53a4b52d0c1e9797bfc70030b04421ba46a6.
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-24Remove some unnecessary allocationscvium
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-05-10Refactor LocalizationManager and remove dead methodDavid Ullmer
2021-05-06Use new ReadAllLines extensionsBond_009
2021-04-30Reduce some allocations with the magic of spans etc.cvium
2021-04-17Remove unused using directivesBaronGreenback
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2020-12-24Put json serializer options in private fieldDavid
2020-12-23Remove xml docsDavid
2020-12-23Remove custom Json serializer from Emby.Server.ImplementationsDavid
2020-09-18Update LocalizationManager.cshoanghuy309
2020-07-22Review usage of string.Substring (part 1)Bond_009
Reduced allocations by replacing string.Substring with ReadOnlySpan<char>.Slice
2020-06-05Use typed logger where possiblecrobibero
2020-04-04Register and construct ILocalizationManager correctlyMark Monteiro
2019-11-22Fix some warningsBond-009
2019-08-16Improve LocalizationManagerBond_009