This class contains string contents for a single translatable message. It
maps between the JAXB/JSON representation of content
/
contents
(in separate elements, for backwards-compatibility) and
the server model (which represents contents
as an
ArrayList
to support plural forms). This class is the superclass
for TextFlow
and TextFlowTarget
.
name | data type | constraints | description |
---|---|---|---|
resId | string | required | |
state | ContentState | ||
|
|
|
|
sourceHash | string | Optional MD5 hash of the source text. | |
extensions | array of object | ||
revision | number | ||
textFlowRevision | number | ||
description | string | Optional descriptive text to identify the TextFlowTarget, eg an abbreviated version of the source text being translated. This can be used for a more readable XML serialisation. | |
Properties inherited from Text Container |
|||
content | string | The (non-plural) string contents associated with this TextFlow/TextFlowTarget. NB: If this message has plural forms, this field will be empty. | |
contents | array of string | The plural string contents associated with this TextFlow/TextFlowTarget. NB: If this message has no plural forms, this field will be empty. |
Example
{ "resId" : "...", "state" : "New", "sourceHash" : "...", "extensions" : [ { }, { } ], "revision" : 12345, "textFlowRevision" : 12345, "description" : "...", "contents" : [ "An english string to translate", "A plural english string to translate" ] }