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, IDictionary<String, String>)
Localize using the current thread culture
Declaration
[Obsolete("Use the overload specifying an area and alias instead of key")]
public static string Localize(this ILocalizedTextService manager, string key, IDictionary<string, string> tokens = null)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
key |
|
System.Collections.Generic.IDictionary<System.String, System.String> |
tokens |
|
Returns
Type |
Description |
System.String |
|
View Source
Localize(ILocalizedTextService, String, CultureInfo, String[])
Localize a key without any variables
Declaration
[Obsolete("Use the overload specifying an area and alias instead of key")]
public static string Localize(this ILocalizedTextService manager, string key, CultureInfo culture, string[] tokens)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
key |
|
System.Globalization.CultureInfo |
culture |
|
System.String[] |
tokens |
|
Returns
Type |
Description |
System.String |
|
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)
Declaration
public static string Localize(this ILocalizedTextService manager, string area, string alias, CultureInfo culture)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
area |
|
System.String |
alias |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
View Source
Localize(ILocalizedTextService, String, String, CultureInfo, IDictionary<String, String>)
Localize a key without any variables
Declaration
public static string Localize(this ILocalizedTextService manager, string area, string alias, CultureInfo culture, IDictionary<string, string> tokens)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
manager |
|
System.String |
area |
|
System.String |
alias |
|
System.Globalization.CultureInfo |
culture |
|
System.Collections.Generic.IDictionary<System.String, System.String> |
tokens |
|
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(ILocalizedTextService, String, String[])
Localize using the current thread culture
Declaration
[Obsolete("Use the overload specifying an area and alias instead of key")]
public static string Localize(this ILocalizedTextService manager, string key, string[] tokens)
Parameters
Returns
Type |
Description |
System.String |
|