From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- .../Globalization/ILocalizationManager.cs | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 MediaBrowser.Model/Globalization/ILocalizationManager.cs (limited to 'MediaBrowser.Model/Globalization/ILocalizationManager.cs') diff --git a/MediaBrowser.Model/Globalization/ILocalizationManager.cs b/MediaBrowser.Model/Globalization/ILocalizationManager.cs new file mode 100644 index 0000000000..9c7a937f3b --- /dev/null +++ b/MediaBrowser.Model/Globalization/ILocalizationManager.cs @@ -0,0 +1,63 @@ +using System.Collections.Generic; +using MediaBrowser.Model.Entities; +using System.Globalization; + +namespace MediaBrowser.Model.Globalization +{ + /// + /// Interface ILocalizationManager + /// + public interface ILocalizationManager + { + /// + /// Gets the cultures. + /// + /// IEnumerable{CultureDto}. + CultureDto[] GetCultures(); + /// + /// Gets the countries. + /// + /// IEnumerable{CountryInfo}. + CountryInfo[] GetCountries(); + /// + /// Gets the parental ratings. + /// + /// IEnumerable{ParentalRating}. + ParentalRating[] GetParentalRatings(); + /// + /// Gets the rating level. + /// + /// The rating. + /// System.Int32. + int? GetRatingLevel(string rating); + + /// + /// Gets the localized string. + /// + /// The phrase. + /// The culture. + /// System.String. + string GetLocalizedString(string phrase, string culture); + + /// + /// Gets the localized string. + /// + /// The phrase. + /// System.String. + string GetLocalizedString(string phrase); + + /// + /// Gets the localization options. + /// + /// IEnumerable{LocalizatonOption}. + LocalizatonOption[] GetLocalizationOptions(); + + string RemoveDiacritics(string text); + + string NormalizeFormKD(string text); + + bool HasUnicodeCategory(string value, UnicodeCategory category); + + CultureDto FindLanguageInfo(string language); + } +} -- cgit v1.2.3