using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; using System; using System.Collections.Generic; namespace MediaBrowser.Controller.Localization { /// /// Interface ILocalizationManager /// public interface ILocalizationManager { /// /// Gets the cultures. /// /// IEnumerable{CultureDto}. IEnumerable GetCultures(); /// /// Gets the countries. /// /// IEnumerable{CountryInfo}. IEnumerable GetCountries(); /// /// Gets the parental ratings. /// /// IEnumerable{ParentalRating}. IEnumerable 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); /// /// Localizes the document. /// /// The document. /// The culture. /// The token builder. /// System.String. string LocalizeDocument(string document, string culture, Func tokenBuilder); /// /// Gets the localization options. /// /// IEnumerable{LocalizatonOption}. IEnumerable GetLocalizationOptions(); /// /// Gets the java script localization dictionary. /// /// The culture. /// Dictionary{System.StringSystem.String}. Dictionary GetJavaScriptLocalizationDictionary(string culture); } }