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.
http://zanata.org/namespace/api/| name | data type | type | namespace | min/max occurs | wrapped by | description |
|---|---|---|---|---|---|---|
| resourceRevision | int | attribute | 0/1 | |||
| state | contentStateType | attribute | 1/1 | |||
| res-id | string | attribute | 1/1 | |||
| revision | int | attribute | 0/1 | |||
| description | string | element | 0/1 | 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. | ||
| |
|
|
|
|
|
|
| content | string | element | 0/1 | The (non-plural) string contents associated with this TextFlow/TextFlowTarget. NB: If this message has plural forms, this field will be empty. | ||
| content | string | element | 0/unbounded | contents | The plural string contents associated with this TextFlow/TextFlowTarget. NB: If this message has no plural forms, this field will be empty. | |
| sourceHash | string | element | ns0 | 0/1 | Optional MD5 hash of the source text. | |
| extension | anyType | element | 0/unbounded | extensions |
Example
<t----- res-id="..." resourceRevision="..." revision="..." state="..." xmlns="http://zanata.org/namespace/api/">
<description xmlns="">...</description>
<contents xmlns="">
<content>An english string to translate</content>
</contents>
<sourceHash>...</sourceHash>
<extensions xmlns="">
<extension>...</extension>
</extensions>
</t----->