mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
* a * acceleration * addition * altogether * api clients * artist * associated * bandwidth * cannot * capabilities * case-insensitive * case-sensitive * configuration * delimiter * dependent * diacritics * directors * enable * explicitly * filters * finish * have * hierarchy * implicit * include * information * into * its * keepalive * localization * macos * manual * matching * metadata * nonexistent * options * overridden * parsed * parser * playback * preferring * processes * processing * provider * ratings * retrieval * running * segments * separate * should * station * subdirectories * superseded * supported * system * than * the * throws * transpose * valid * was link: forum or chat rooms Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
66 lines
2.3 KiB
C#
66 lines
2.3 KiB
C#
using System.Collections.Generic;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
namespace MediaBrowser.Model.Globalization
|
|
{
|
|
/// <summary>
|
|
/// Interface ILocalizationManager.
|
|
/// </summary>
|
|
public interface ILocalizationManager
|
|
{
|
|
/// <summary>
|
|
/// Gets the cultures.
|
|
/// </summary>
|
|
/// <returns><see cref="IEnumerable{CultureDto}" />.</returns>
|
|
IEnumerable<CultureDto> GetCultures();
|
|
|
|
/// <summary>
|
|
/// Gets the countries.
|
|
/// </summary>
|
|
/// <returns><see cref="IEnumerable{CountryInfo}" />.</returns>
|
|
IEnumerable<CountryInfo> GetCountries();
|
|
|
|
/// <summary>
|
|
/// Gets the parental ratings.
|
|
/// </summary>
|
|
/// <returns><see cref="IEnumerable{ParentalRating}" />.</returns>
|
|
IEnumerable<ParentalRating> GetParentalRatings();
|
|
|
|
/// <summary>
|
|
/// Gets the rating level.
|
|
/// </summary>
|
|
/// <param name="rating">The rating.</param>
|
|
/// <param name="countryCode">The optional two letter ISO language string.</param>
|
|
/// <returns><see cref="int" /> or <c>null</c>.</returns>
|
|
int? GetRatingLevel(string rating, string? countryCode = null);
|
|
|
|
/// <summary>
|
|
/// Gets the localized string.
|
|
/// </summary>
|
|
/// <param name="phrase">The phrase.</param>
|
|
/// <param name="culture">The culture.</param>
|
|
/// <returns><see cref="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><see cref="IEnumerable{LocalizationOption}" />.</returns>
|
|
IEnumerable<LocalizationOption> GetLocalizationOptions();
|
|
|
|
/// <summary>
|
|
/// Returns the correct <see cref="CultureDto" /> for the given language.
|
|
/// </summary>
|
|
/// <param name="language">The language.</param>
|
|
/// <returns>The correct <see cref="CultureDto" /> for the given language.</returns>
|
|
CultureDto? FindLanguageInfo(string language);
|
|
}
|
|
}
|