jellyfin/MediaBrowser.Model/Globalization/ILocalizationManager.cs

59 lines
1.8 KiB
C#
Raw Normal View History

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