Class LocalizationService
Provides methods to translate texts from the Picturepark backend.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class LocalizationService
Methods
GetDateTimeLocalizedDisplayValue(String)
Declaration
public static string GetDateTimeLocalizedDisplayValue(string value)
Parameters
System.String
value
|
Returns
System.String
|
GetLocalizedErrorCode(PictureparkException, String)
Gets the localized error message for the given exception.
Declaration
public static string GetLocalizedErrorCode(PictureparkException exception, string language)
Parameters
PictureparkException
exception
The exception. |
System.String
language
The language. |
Returns
System.String
The localized error message. |
GetLocalizedText(Int32, IDictionary<String, Object>, String)
Gets the localized text for the given code and language.
Declaration
public static string GetLocalizedText(int code, IDictionary<string, object> additionalData, string language)
Parameters
System.Int32
code
The code to identify the text. |
IDictionary<System.String, System.Object>
additionalData
The additional placeholder data to use in the text. |
System.String
language
The language. |
Returns
System.String
The localized text. |
GetLocalizedText(Int32, String)
Gets the localized text for the given code and language.
Declaration
public static string GetLocalizedText(int code, string language)
Parameters
System.Int32
code
The code to identify the text. |
System.String
language
The language. |
Returns
System.String
The localized text. |
GetLocalizedText(String, IDictionary<String, Object>, String)
Gets the localized text for the given code and language.
Declaration
public static string GetLocalizedText(string code, IDictionary<string, object> additionalData, string language)
Parameters
System.String
code
The code to identify the text. |
IDictionary<System.String, System.Object>
additionalData
The additional placeholder data to use in the text. |
System.String
language
The language. |
Returns
System.String
The localized text. |
GetLocalizedText(String, String)
Gets the localized text for the given code and language.
Declaration
public static string GetLocalizedText(string code, string language)
Parameters
System.String
code
The code to identify the text. |
System.String
language
The language. |
Returns
System.String
The localized text. |
ReplaceDateTimeLocalizedDisplayValueInObject(Object)
Declaration
public static void ReplaceDateTimeLocalizedDisplayValueInObject(object obj)
Parameters
System.Object
obj
|