View Source
Class LocalizedTextServiceExtensions
Extension methods for ILocalizedTextService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class LocalizedTextServiceExtensions
Methods
View Source
Localize(ILocalizedTextService, String, String)
Declaration
public static string Localize(this ILocalizedTextService manager, string area, string alias)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
Localize(ILocalizedTextService, String, String, CultureInfo, String[])
Localize a key without any variables
Declaration
public static string Localize(this ILocalizedTextService manager, string area, string alias, CultureInfo culture, string[] tokens)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
area |
|
System.String |
alias |
|
System.Globalization.CultureInfo |
culture |
|
System.String[] |
tokens |
|
Returns
Type |
Description |
System.String |
|
View Source
Localize(ILocalizedTextService, String, String, String[])
Localize using the current thread culture
Declaration
public static string Localize(this ILocalizedTextService manager, string area, string alias, string[] tokens)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
area |
|
System.String |
alias |
|
System.String[] |
tokens |
|
Returns
Type |
Description |
System.String |
|
View Source
Localize<T>(ILocalizedTextService, String, T)
Declaration
public static string Localize<T>(this ILocalizedTextService manager, string area, T key)
where T : Enum
Parameters
Returns
Type |
Description |
System.String |
|
Type Parameters
View Source
UmbracoDictionaryTranslate(ILocalizedTextService, ICultureDictionary, String)
Declaration
public static string UmbracoDictionaryTranslate(this ILocalizedTextService manager, ICultureDictionary cultureDictionary, string text)
Parameters
Returns
Type |
Description |
System.String |
|