remore ui replacements

This commit is contained in:
Shannon
2016-03-15 16:58:13 +01:00
parent fb5e998e1f
commit b98277f573
24 changed files with 88 additions and 78 deletions

View File

@@ -11,6 +11,12 @@ namespace Umbraco.Core.Services
/// </summary>
public static class LocalizedTextServiceExtensions
{
public static string Localize(this ILocalizedTextService manager, params string[] keyParts)
{
var key = string.Join("/", keyParts);
return manager.Localize(key, Thread.CurrentThread.CurrentUICulture);
}
/// <summary>
/// Localize using the current thread culture
/// </summary>