Fix a spelling mistake

This commit is contained in:
Bond_009 2019-01-25 22:27:33 +01:00
parent e0315b5695
commit eaa6cb0ddc
5 changed files with 63 additions and 60 deletions

View File

@ -502,58 +502,55 @@ namespace Emby.Server.Implementations.Localization
return culture + ".json"; return culture + ".json";
} }
public LocalizatonOption[] GetLocalizationOptions() public LocalizationOption[] GetLocalizationOptions()
{ => new LocalizationOption[]
return new LocalizatonOption[]
{ {
new LocalizatonOption{ Name="Arabic", Value="ar"}, new LocalizationOption("Arabic", "ar"),
new LocalizatonOption{ Name="Belarusian (Belarus)", Value="be-BY"}, new LocalizationOption("Belarusian (Belarus)", "be-BY"),
new LocalizatonOption{ Name="Bulgarian (Bulgaria)", Value="bg-BG"}, new LocalizationOption("Bulgarian (Bulgaria)", "bg-BG"),
new LocalizatonOption{ Name="Catalan", Value="ca"}, new LocalizationOption("Catalan", "ca"),
new LocalizatonOption{ Name="Chinese Simplified", Value="zh-CN"}, new LocalizationOption("Chinese Simplified", "zh-CN"),
new LocalizatonOption{ Name="Chinese Traditional", Value="zh-TW"}, new LocalizationOption("Chinese Traditional", "zh-TW"),
new LocalizatonOption{ Name="Chinese Traditional (Hong Kong)", Value="zh-HK"}, new LocalizationOption("Chinese Traditional (Hong Kong)", "zh-HK"),
new LocalizatonOption{ Name="Croatian", Value="hr"}, new LocalizationOption("Croatian", "hr"),
new LocalizatonOption{ Name="Czech", Value="cs"}, new LocalizationOption("Czech", "cs"),
new LocalizatonOption{ Name="Danish", Value="da"}, new LocalizationOption("Danish", "da"),
new LocalizatonOption{ Name="Dutch", Value="nl"}, new LocalizationOption("Dutch", "nl"),
new LocalizatonOption{ Name="English (United Kingdom)", Value="en-GB"}, new LocalizationOption("English (United Kingdom)", "en-GB"),
new LocalizatonOption{ Name="English (United States)", Value="en-US"}, new LocalizationOption("English (United States)", "en-US"),
new LocalizatonOption{ Name="Finnish", Value="fi"}, new LocalizationOption("Finnish", "fi"),
new LocalizatonOption{ Name="French", Value="fr"}, new LocalizationOption("French", "fr"),
new LocalizatonOption{ Name="French (Canada)", Value="fr-CA"}, new LocalizationOption("French (Canada)", "fr-CA"),
new LocalizatonOption{ Name="German", Value="de"}, new LocalizationOption("German", "de"),
new LocalizatonOption{ Name="Greek", Value="el"}, new LocalizationOption("Greek", "el"),
new LocalizatonOption{ Name="Hebrew", Value="he"}, new LocalizationOption("Hebrew", "he"),
new LocalizatonOption{ Name="Hindi (India)", Value="hi-IN"}, new LocalizationOption("Hindi (India)", "hi-IN"),
new LocalizatonOption{ Name="Hungarian", Value="hu"}, new LocalizationOption("Hungarian", "hu"),
new LocalizatonOption{ Name="Indonesian", Value="id"}, new LocalizationOption("Indonesian", "id"),
new LocalizatonOption{ Name="Italian", Value="it"}, new LocalizationOption("Italian", "it"),
new LocalizatonOption{ Name="Japanese", Value="ja"}, new LocalizationOption("Japanese", "ja"),
new LocalizatonOption{ Name="Kazakh", Value="kk"}, new LocalizationOption("Kazakh", "kk"),
new LocalizatonOption{ Name="Korean", Value="ko"}, new LocalizationOption("Korean", "ko"),
new LocalizatonOption{ Name="Lithuanian", Value="lt-LT"}, new LocalizationOption("Lithuanian", "lt-LT"),
new LocalizatonOption{ Name="Malay", Value="ms"}, new LocalizationOption("Malay", "ms"),
new LocalizatonOption{ Name="Norwegian Bokmål", Value="nb"}, new LocalizationOption("Norwegian Bokmål", "nb"),
new LocalizatonOption{ Name="Persian", Value="fa"}, new LocalizationOption("Persian", "fa"),
new LocalizatonOption{ Name="Polish", Value="pl"}, new LocalizationOption("Polish", "pl"),
new LocalizatonOption{ Name="Portuguese (Brazil)", Value="pt-BR"}, new LocalizationOption("Portuguese (Brazil)", "pt-BR"),
new LocalizatonOption{ Name="Portuguese (Portugal)", Value="pt-PT"}, new LocalizationOption("Portuguese (Portugal)", "pt-PT"),
new LocalizatonOption{ Name="Romanian", Value="ro"}, new LocalizationOption("Romanian", "ro"),
new LocalizatonOption{ Name="Russian", Value="ru"}, new LocalizationOption("Russian", "ru"),
new LocalizatonOption{ Name="Slovak", Value="sk"}, new LocalizationOption("Slovak", "sk"),
new LocalizatonOption{ Name="Slovenian (Slovenia)", Value="sl-SI"}, new LocalizationOption("Slovenian (Slovenia)", "sl-SI"),
new LocalizatonOption{ Name="Spanish", Value="es"}, new LocalizationOption("Spanish", "es"),
new LocalizatonOption{ Name="Spanish (Latin America)", Value="es-419"}, new LocalizationOption("Spanish (Latin America)", "es-419"),
new LocalizatonOption{ Name="Spanish (Mexico)", Value="es-MX"}, new LocalizationOption("Spanish (Mexico)", "es-MX"),
new LocalizatonOption{ Name="Swedish", Value="sv"}, new LocalizationOption("Swedish", "sv"),
new LocalizatonOption{ Name="Swiss German", Value="gsw"}, new LocalizationOption("Swiss German", "gsw"),
new LocalizatonOption{ Name="Turkish", Value="tr"}, new LocalizationOption("Turkish", "tr"),
new LocalizatonOption{ Name="Ukrainian", Value="uk"}, new LocalizationOption("Ukrainian", "uk"),
new LocalizatonOption{ Name="Vietnamese", Value="vi"} new LocalizationOption("Vietnamese", "vi")
}; };
}
} }
public interface ITextLocalizer public interface ITextLocalizer

View File

@ -33,7 +33,7 @@ namespace MediaBrowser.Api
/// Class ParentalRatings /// Class ParentalRatings
/// </summary> /// </summary>
[Route("/Localization/Options", "GET", Summary = "Gets localization options")] [Route("/Localization/Options", "GET", Summary = "Gets localization options")]
public class GetLocalizationOptions : IReturn<LocalizatonOption[]> public class GetLocalizationOptions : IReturn<LocalizationOption[]>
{ {
} }

View File

@ -49,7 +49,7 @@ namespace MediaBrowser.Model.Globalization
/// Gets the localization options. /// Gets the localization options.
/// </summary> /// </summary>
/// <returns>IEnumerable{LocalizatonOption}.</returns> /// <returns>IEnumerable{LocalizatonOption}.</returns>
LocalizatonOption[] GetLocalizationOptions(); LocalizationOption[] GetLocalizationOptions();
string RemoveDiacritics(string text); string RemoveDiacritics(string text);

View File

@ -0,0 +1,14 @@
namespace MediaBrowser.Model.Globalization
{
public class LocalizationOption
{
public LocalizationOption(string name, string value)
{
Name = name;
Value = value;
}
public string Name { get; set; }
public string Value { get; set; }
}
}

View File

@ -1,8 +0,0 @@
namespace MediaBrowser.Model.Globalization
{
public class LocalizatonOption
{
public string Name { get; set; }
public string Value { get; set; }
}
}