aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Globalization
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-27 10:20:05 +0100
committerBond_009 <bond.009@outlook.com>2019-01-27 10:36:05 +0100
commit51edd5d067c919800f504bfa9fe1708279faaa3f (patch)
treefe8be0fae8e493710fec0354a0fcc730a2ae7e0b /MediaBrowser.Model/Globalization
parente3b19c22a7506d6e03d6519b50797c1f49c70034 (diff)
Reworked LocalizationManager to load data async
Diffstat (limited to 'MediaBrowser.Model/Globalization')
-rw-r--r--MediaBrowser.Model/Globalization/ILocalizationManager.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Globalization/ILocalizationManager.cs b/MediaBrowser.Model/Globalization/ILocalizationManager.cs
index 05efb6681..a9ce60a2a 100644
--- a/MediaBrowser.Model/Globalization/ILocalizationManager.cs
+++ b/MediaBrowser.Model/Globalization/ILocalizationManager.cs
@@ -1,4 +1,6 @@
+using System.Collections.Generic;
using System.Globalization;
+using System.Threading.Tasks;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Globalization
@@ -17,12 +19,12 @@ namespace MediaBrowser.Model.Globalization
/// Gets the countries.
/// </summary>
/// <returns>IEnumerable{CountryInfo}.</returns>
- CountryInfo[] GetCountries();
+ Task<CountryInfo[]> GetCountries();
/// <summary>
/// Gets the parental ratings.
/// </summary>
/// <returns>IEnumerable{ParentalRating}.</returns>
- ParentalRating[] GetParentalRatings();
+ IEnumerable<ParentalRating> GetParentalRatings();
/// <summary>
/// Gets the rating level.
/// </summary>
@@ -51,8 +53,6 @@ namespace MediaBrowser.Model.Globalization
/// <returns>IEnumerable{LocalizatonOption}.</returns>
LocalizationOption[] GetLocalizationOptions();
- string RemoveDiacritics(string text);
-
string NormalizeFormKD(string text);
bool HasUnicodeCategory(string value, UnicodeCategory category);