2016-10-24 02:45:23 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
2013-06-06 14:33:11 +00:00
|
|
|
|
|
2016-10-24 02:45:23 +00:00
|
|
|
|
namespace MediaBrowser.Model.Globalization
|
2013-06-06 14:33:11 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface ILocalizationManager
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ILocalizationManager
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the cultures.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{CultureDto}.</returns>
|
|
|
|
|
IEnumerable<CultureDto> GetCultures();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the countries.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{CountryInfo}.</returns>
|
|
|
|
|
IEnumerable<CountryInfo> GetCountries();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the parental ratings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{ParentalRating}.</returns>
|
|
|
|
|
IEnumerable<ParentalRating> GetParentalRatings();
|
2013-06-10 17:46:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the rating level.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="rating">The rating.</param>
|
|
|
|
|
/// <returns>System.Int32.</returns>
|
|
|
|
|
int? GetRatingLevel(string rating);
|
2014-03-31 01:00:47 +00:00
|
|
|
|
|
|
|
|
|
/// <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>
|
|
|
|
|
IEnumerable<LocalizatonOption> GetLocalizationOptions();
|
2016-10-25 19:02:04 +00:00
|
|
|
|
|
|
|
|
|
string RemoveDiacritics(string text);
|
2016-10-27 07:58:33 +00:00
|
|
|
|
|
|
|
|
|
string NormalizeFormKD(string text);
|
2013-06-06 14:33:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|