How to import translation values for record names and field help added in NetSuite to an SDF

We cannot directly import translation for record names, labels, and field help added in NetSuite to an SDF.

However there is a workaround, if you want to do the same.

Follow these steps:

1. Create a Translation Collection in NetSuite. Refer to the article for the same jjknowledgebase.com/post/80301

2. Add the text and corresponding translations in the required languages.

3. Export the required translations(to the specific languages) as XLIFF file jjknowledgebase.com/post/80307

4. Import the NetSuite Translation Collection into the SDF. If you are using VS Code IDE and SuiteCloud Extension for Visual Studio Code, you can use the command palette options: Import Objects > Choose ‘translationcollection’ > Choose the script ID of the translation collection

5. Copy and paste the translation string XLIFF file(from step3) into the ‘Translations’ folder in the SDF.

6. This is the most important step. Update the records where you want to include the translation with an object reference to the translation strings:

// In this example, the translation collection script ID is custcollection_my_trnslation
// Translation strings have IDs: custrecordlabel(stores record name), fieldname124(stores field name), and fieldhelp124 (stores field help)
// For record names or labels
<recordname translate="T">[scriptid=custcollection_my_trnslation.custrecordlabel]</recordname>
.
.
.
// For field names/labels
<label translate="T">[scriptid=custcollection_my_trnslation.fieldname124]</label> //  is  custrecordlabel is the string ID
.
.
.
// For fields help text
<help translate="T">[scriptid=custcollection_my_trnslation.fieldhelp124]</help>

If you deploy the updated object along with the translation collection object to an account, the translations will appear in the records.


		

Leave a comment

Your email address will not be published. Required fields are marked *