CSApplicationTranslateMessage Method (CSException, CSApplicationSupportedLanguages) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Translates a Content Studio message id to its textual representation in a certain language.

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public string TranslateMessage(
	CSException csException,
	CSApplicationSupportedLanguages languageCode
)

Parameters

csException
Type: ContentStudioCSException
The CSException to translate.
languageCode
Type: ContentStudioCSApplicationSupportedLanguages
The string representation of the language to return the message in. If the language code is not supported or empty English is used.

Return Value

Type: String
The textual representation of the message
Exceptions

ExceptionCondition
ArgumentExceptionAn invalid message id has been supplied.
FileNotFoundExceptionThe default xml message source file could not be found. The message.xml files are expected to be found in the same directory as the executing assembly .
See Also

Reference