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