Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
The textual representation of the message
[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, string originalMessage )
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. - originalMessage
- 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: StringThe textual representation of the message
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | An invalid message id has been supplied. |
FileNotFoundException | The 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