aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Reports/Common/ReportHelper.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-27 14:18:10 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-27 14:18:10 -0400
commitfbca42a34945a600423e9d4cc1ea59e40b47a595 (patch)
tree3c568de9cd94e524ac52e32eeb69ecab621fe642 /MediaBrowser.Api/Reports/Common/ReportHelper.cs
parenta714926d632a764ace2ead98a5c22c1f24b9c363 (diff)
rework localization
Diffstat (limited to 'MediaBrowser.Api/Reports/Common/ReportHelper.cs')
-rw-r--r--MediaBrowser.Api/Reports/Common/ReportHelper.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/MediaBrowser.Api/Reports/Common/ReportHelper.cs b/MediaBrowser.Api/Reports/Common/ReportHelper.cs
index 1de0190cf..01aff9d31 100644
--- a/MediaBrowser.Api/Reports/Common/ReportHelper.cs
+++ b/MediaBrowser.Api/Reports/Common/ReportHelper.cs
@@ -2,8 +2,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace MediaBrowser.Api.Reports
{
@@ -83,16 +81,7 @@ namespace MediaBrowser.Api.Reports
/// <returns> The java script localized string. </returns>
public static string GetJavaScriptLocalizedString(string phrase)
{
- var dictionary = BaseItem.LocalizationManager.GetJavaScriptLocalizationDictionary(BaseItem.ConfigurationManager.Configuration.UICulture);
-
- string value;
-
- if (dictionary.TryGetValue(phrase, out value))
- {
- return value;
- }
-
- return phrase;
+ return BaseItem.LocalizationManager.GetLocalizedString(phrase);
}
/// <summary> Gets report view type. </summary>
@@ -132,7 +121,7 @@ namespace MediaBrowser.Api.Reports
/// <returns> The server localized string. </returns>
public static string GetServerLocalizedString(string phrase)
{
- return BaseItem.LocalizationManager.GetLocalizedString(phrase, BaseItem.ConfigurationManager.Configuration.UICulture);
+ return BaseItem.LocalizationManager.GetLocalizedString(phrase);
}
#endregion