Fixes: U4-2982 missing translation on contextmenu

This commit is contained in:
perploug
2013-10-01 12:32:27 +02:00
parent 5dd9510d69
commit 0898638e33
2 changed files with 19 additions and 0 deletions

View File

@@ -74,6 +74,11 @@ namespace Umbraco.Web.Trees
LogHelper.Error<LegacyTreeController>(msg, attempt.Exception);
throw new ApplicationException(msg);
}
foreach (var menuItem in attempt.Result.MenuItems)
{
menuItem.Name = global::umbraco.ui.Text("actions", menuItem.Alias);
}
return attempt.Result;
}
else
@@ -85,6 +90,10 @@ namespace Umbraco.Web.Trees
LogHelper.Error<LegacyTreeController>(msg, attempt.Exception);
throw new ApplicationException(msg);
}
foreach (var menuItem in attempt.Result.MenuItems)
{
menuItem.Name = global::umbraco.ui.Text("actions", menuItem.Alias);
}
return attempt.Result;
}
}