Translation Collection Strings in SuiteCloud Projects

In SuiteCloud Development Framework (SDF), translated terms are stored in the SuiteCloud project as Translation Collection strings in XLIFF formatted files. Each translationcollection object in the SuiteCloud project can optionally have one or more XLIFF (.xlf or .xliff) formatted file. A separate XLIFF file is used for each language.

Your translators can provide you with translated strings in XLIFF formatted files. The following example contains Spanish language translations for the custcollection_accommodation Translation Collection:

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
    <file original="netsuite-database" source-language="en-US" target-language="es-ES" datatype="database">
        <body>
            <group collection="custcollection_accommodation">
                <trans-unit id="FRONT_DESK">
                    <source>front desk</source>
                    <target>mostrador</target>
                    <note from="developer">The front desk of a hotel</note>
                </trans-unit>
                <trans-unit id="ACCOMMODATION">
                    <source>accommodation</source>
                    <target>alojamiento</target>
                    <note from="developer">The type of reservation.</note>
                </trans-unit>
            </group>
        </body>
    </file>
</xliff> 

        

Each XLIFF file must meet the following requirements:

The path to the XLIFF file must be added to the deploy.xml file. The asterisk (*) wildcard can be specified in the path to specify multiple files, but files in the Translation directory without the .xlf and .xliff file extensions are not included in deployment and do not appear in the deployment log. The following example adds the path to an XLIFF file containing Spanish language translations for the custcollection_accommodation Translation Collection:

          <deploy>
...
        <translationimports>
            <path>~/Translations/accommodation_es_ES.xlf</path>
        </translationimports>
...
</deploy> 

        

Consider the following information regarding translation string validation:

The XLIFF files can be omitted from the SuiteCloud project and added later in the target NetSuite account. For more information, see the following:

If no XLIFF files exist in the SuiteCloud project when it is deployed to an account, the files are still automatically created when exporting the Translation Collection from the account using the NetSuite UI. For more information, see Exporting a Translation Collection.

Related Topics

Translation Collections as XML Definitions
Translation Collection Object Fields in XML Definitions

General Notices