Documentation Center

Translation Statuses XML Structure

Describes the XML structure containing the statuses used during the translation flow.

XML structure

<xs:schema id="ISHTranslationStatuses" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="translationstatuses">
    <xs:complexType>
      <xs:sequence minOccurs="1" maxOccurs="unbounded">
        <xs:element ref="status"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="status">
    <xs:complexType>
      <xs:all>
        <xs:element name="label" minOccurs="1" maxOccurs="1" type="xs:string"/>
        <xs:element name="description" minOccurs="1" maxOccurs="1" type="xs:string"/>
      </xs:all>
      <xs:attribute name="ishref" use="required" type="ElementName" />
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Initial"/>
            <xs:enumeration value="InTranslation"/>
            <xs:enumeration value="TranslationInReview"/>
            <xs:enumeration value="TranslationApproved"/>
            <xs:enumeration value="TranslationRejected"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="ElementName">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

Example

<?xml version="1.0" encoding="utf-16"?>
<translationstatuses>
  <status type="Initial" ishref="VSTATUSTOBETRANSLATED">
    <label xml:space="preserve">To be translated</label>
    <description xml:space="preserve"/>
  </status>
  <status type="InTranslation" ishref="VSTATUSINTRANSLATION">
    <label xml:space="preserve">In translation</label>
    <description xml:space="preserve"/>
  </status>
  <status type="TranslationInReview" ishref="VSTATUSTRANSLATIONINREVIEW">
    <label xml:space="preserve">Translation in review</label>
    <description xml:space="preserve"/>
  </status>
  <status type="TranslationApproved" ishref="VSTATUSTRANSLATED">
    <label xml:space="preserve">Translation approved</label>
    <description xml:space="preserve"/>
  </status>
  <status type="TranslationRejected" ishref="VSTATUSTRANSLATIONREJECTED">
    <label xml:space="preserve">Translation rejected</label>
    <description xml:space="preserve"/>
  </status>
</translationstatuses>