Merge pull request #698 from Nicholas-Westby/dev-v7

Fixes U4-6665 (Localization Bug)
This commit is contained in:
Shannon Deminick
2015-06-02 21:29:16 +02:00

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Web.Editors
[HttpGet]
public JsonNetResult LocalizedText(string culture = null)
{
var cultureInfo = culture == null
var cultureInfo = string.IsNullOrWhiteSpace(culture)
//if the user is logged in, get their culture, otherwise default to 'en'
? User.Identity.IsAuthenticated && User.Identity is UmbracoBackOfficeIdentity
? Security.CurrentUser.GetUserCulture(Services.TextService)