Translations

Several entities may contain translations. For example, when posting product units, one may also include a Translation element as a child node of the product unit element.

<omd.domain.s5.ProductUnit name=”PC” description=”Piece”>
  <omd.i18n.ProductUnitTranslation locale=”fr” text=”Pièce”/>
</omd.domain.s5.ProductUnit>

The example below shows an upload of a product along with two translations.

<?xml version="1.0" encoding="UTF-8"?>
<Upload>
  <omd.domain.Configuration>
    <omd.domain.s5.Product available="true" category="Vehicle Parts" code="A353635" description="Spark Plug – Standard" price="29.0" salesByService="true" scanRequired="false" title="Spark Plug" unit="Piece">
      <omd.i18n.ProductTranslation locale="fr" text="Bougie"/>
      <omd.i18n.ProductTranslation locale="de" text="Zündkerze"/>
    </omd.domain.s5.Product>
  </omd.domain.Configuration>
</Upload>

results matching ""

    No results matching ""