Interface ILocalizationManager
Interface ILocalizationManager
Assembly: MediaBrowser.Model.dll
public interface ILocalizationManager
Properties
Declaration
IComparer<string> DisplaySortingComparer { get; }
Property Value
Type |
Description |
System.Collections.Generic.IComparer<System.String> |
|
Methods
Declaration
CountryInfo FindCountryInfo(ReadOnlySpan<char> country)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
country |
|
Returns
Declaration
CultureDto FindLanguageInfo(MediaStream stream)
Parameters
Returns
Declaration
CultureDto FindLanguageInfo(ReadOnlySpan<char> language)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
language |
|
Returns
Declaration
CultureDto FindLanguageInfo(string language)
Parameters
Type |
Name |
Description |
System.String |
language |
|
Returns
Declaration
CultureDto FindLanguageInfo(string language, string displayName)
Parameters
Type |
Name |
Description |
System.String |
language |
|
System.String |
displayName |
|
Returns
Declaration
CultureDto[] FindLanguageInfos(string language)
Parameters
Type |
Name |
Description |
System.String |
language |
|
Returns
Declaration
CultureDto[] GetConfiguredLanguages(string preferredLanguage)
Parameters
Type |
Name |
Description |
System.String |
preferredLanguage |
|
Returns
Declaration
CountryInfo[] GetCountries()
Returns
Type |
Description |
CountryInfo[] |
IEnumerable{CountryInfo}.
|
Declaration
CultureDto[] GetCultures()
Returns
Type |
Description |
CultureDto[] |
IEnumerable{CultureDto}.
|
Gets the localization options.
Declaration
LocalizatonOption[] GetLocalizationOptions()
Returns
Gets the localized string.
Declaration
string GetLocalizedString(string phrase)
Parameters
Type |
Name |
Description |
System.String |
phrase |
The phrase.
|
Returns
Type |
Description |
System.String |
System.String.
|
Gets the localized string.
Declaration
string GetLocalizedString(string phrase, string culture)
Parameters
Type |
Name |
Description |
System.String |
phrase |
The phrase.
|
System.String |
culture |
The culture.
|
Returns
Type |
Description |
System.String |
System.String.
|
Declaration
string GetLocalizedStringUsingServerCulture(string phrase)
Parameters
Type |
Name |
Description |
System.String |
phrase |
|
Returns
Type |
Description |
System.String |
|
Gets the parental ratings.
Declaration
ParentalRating[] GetParentalRatings()
Returns
Declaration
ParentalRating[] GetParentalRatings(string countryCode)
Parameters
Type |
Name |
Description |
System.String |
countryCode |
|
Returns
Declaration
int? GetRatingLevel(ReadOnlySpan<char> rating)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
rating |
The rating.
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
System.Int32.
|
Declaration
int? GetRatingLevel(string rating)
Parameters
Type |
Name |
Description |
System.String |
rating |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
string MapLanguageToProviderLanguage(CultureDto language, string country, string[] providerLanguages)
Parameters
Type |
Name |
Description |
CultureDto |
language |
|
System.String |
country |
|
System.String[] |
providerLanguages |
|
Returns
Type |
Description |
System.String |
|
Declaration
string MapLanguageToProviderLanguage(CultureDto language, string[] providerLanguages)
Parameters
Type |
Name |
Description |
CultureDto |
language |
|
System.String[] |
providerLanguages |
|
Returns
Type |
Description |
System.String |
|
Declaration
string MapLanguageToProviderLanguage(string language, string country, string[] providerLanguages)
Parameters
Type |
Name |
Description |
System.String |
language |
|
System.String |
country |
|
System.String[] |
providerLanguages |
|
Returns
Type |
Description |
System.String |
|
Declaration
string MapLanguageToProviderLanguage(string language, string[] providerLanguages)
Parameters
Type |
Name |
Description |
System.String |
language |
|
System.String[] |
providerLanguages |
|
Returns
Type |
Description |
System.String |
|
Declaration
string RemoveDiacritics(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
Declaration
bool SetCurrentThreadCulture(string cultureName)
Parameters
Type |
Name |
Description |
System.String |
cultureName |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods