2019-01-27 09:20:05 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 20:02:23 +00:00
|
|
|
using System.Globalization;
|
2019-01-27 09:20:05 +00:00
|
|
|
using System.Threading.Tasks;
|
2018-12-27 23:27:57 +00:00
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Globalization
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Interface ILocalizationManager
|
|
|
|
/// </summary>
|
|
|
|
public interface ILocalizationManager
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the cultures.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IEnumerable{CultureDto}.</returns>
|
|
|
|
CultureDto[] GetCultures();
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the countries.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IEnumerable{CountryInfo}.</returns>
|
2019-01-27 09:20:05 +00:00
|
|
|
Task<CountryInfo[]> GetCountries();
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the parental ratings.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IEnumerable{ParentalRating}.</returns>
|
2019-01-27 09:20:05 +00:00
|
|
|
IEnumerable<ParentalRating> GetParentalRatings();
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the rating level.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="rating">The rating.</param>
|
|
|
|
/// <returns>System.Int32.</returns>
|
|
|
|
int? GetRatingLevel(string rating);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the localized string.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="phrase">The phrase.</param>
|
|
|
|
/// <param name="culture">The culture.</param>
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
string GetLocalizedString(string phrase, string culture);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the localized string.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="phrase">The phrase.</param>
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
string GetLocalizedString(string phrase);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the localization options.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IEnumerable{LocalizatonOption}.</returns>
|
2019-01-25 21:27:33 +00:00
|
|
|
LocalizationOption[] GetLocalizationOptions();
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
string NormalizeFormKD(string text);
|
|
|
|
|
|
|
|
bool HasUnicodeCategory(string value, UnicodeCategory category);
|
|
|
|
|
|
|
|
CultureDto FindLanguageInfo(string language);
|
|
|
|
}
|
|
|
|
}
|