CSApplicationTranslateMessage Method (Int32, 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(
	int messageId,
	CSApplicationSupportedLanguages languageCode
)

Parameters

messageId
Type: SystemInt32
The Content Studio message to translate. This value must be within the MIN_MESSAGE_ID and the MAX_MESSAGE_ID bounds
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