CSApplicationTranslateMessage Method (Int32, CSApplicationSupportedLanguages, String) 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)

public string TranslateMessage(
	int messageId,
	CSApplicationSupportedLanguages languageCode,
	string originalMessage


Type: SystemInt32
The Content Studio message to translate. This value must be within the MIN_MESSAGE_ID and the MAX_MESSAGE_ID bounds
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.
Type: SystemString
The original message as it came from the system. This value is needed with some parameterized messages where dynamic values is inserted. If the language code is not supported or empty English is used.

Return Value

Type: String
The textual representation of the message

ArgumentOutOfRangeExceptionAn 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