diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-20 12:19:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-20 12:19:03 -0400 |
| commit | 9b383f6b1ad57489c71e4d81d9c831d3d5960f10 (patch) | |
| tree | 87fc46c77646967dbb88f49538531a81004f9a7b /Emby.Server.Implementations/Localization/LocalizationManager.cs | |
| parent | 93a0244b7aee9d850dfa48762e64348a3c864ef5 (diff) | |
| parent | 0cf4f01dc72b3775e3af067ed1eef51c683a3c02 (diff) | |
Merge pull request #2965 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Localization/LocalizationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Localization/LocalizationManager.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs index b0cee12be..48df96289 100644 --- a/Emby.Server.Implementations/Localization/LocalizationManager.cs +++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs @@ -315,6 +315,11 @@ namespace Emby.Server.Implementations.Localization public string GetLocalizedString(string phrase, string culture) { + if (string.IsNullOrWhiteSpace(culture)) + { + culture = _configurationManager.Configuration.UICulture; + } + var dictionary = GetLocalizationDictionary(culture); string value; |
