Logotype Sitevision Developer
Log in
Log in

XliffTranslation REST API endpoint

Disclaimer: This endpoint documentation is generated from the latest Sitevision version. It might differ from the actual Sitevision environment where your website resides.

Use the RestApi utility of the Public API for server-side access of this endpoint.

XliffTranslation

Provides export and import of text modules on the Page in Xliff format.

Applicable to: sv:page, sv:article.

GET

Returns all text elements in the Page in XLIFF 2.0 format. This includes all text modules, including text modules in selectable views, and local simple text metadata.

Requires that the caller is authorized to MANAGE_TRANSLATIONS.

PUT

Updates all text elements from XLIFF 2.0 format input<./p>

Requires that the caller is authorized to MANAGE_TRANSLATIONS.

Body content Example
A translated XLIFF file matching the result from GET on this node.
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0"
            version="2.0" srcLang="sv-SE" trgLang="en-US">
  <file id="4.2ca59d2f159f89392721">
    <unit id="12.2ca59d2f159f89392728">
      <segment>
        <source>
          <![CDATA[
            <div id="text12_2ca59d2f159f89392728"
                class="sv-text-portlet-content sv-use-margins">
              <p class="normal" data-format-sitefont-id=
                "13.540818ed12a6539aa3f8000578">
                En modultext
              </p>
            </div>
          ]]>
        </source>
        <target>
          <![CDATA[
            <div id="text12_2ca59d2f159f89392728"
                class="sv-text-portlet-content sv-use-margins">
              <p class="normal" data-format-sitefont-id=
                "13.540818ed12a6539aa3f8000578">
                A module text
              </p>
            </div>
          ]]>
        </target>
      </segment>
    </unit>
    <unit id="158.2ca59d2f159f8939272b">
      <segment>
        <source>Här är en metadatatext</source>
        <target>Here's a metadata text</target>
      </segment>
    </unit>
  </file>
</xliff>
Did you find the content on this page useful?