Specialized Administration > Supporting Business Object Text Translation > Loading Translation Dictionary Entries from XML
Loading Translation Dictionary Entries from XML
The following sections provide detailed information about loading entries, provided from an external system, into the dictionary from XML to support their use as translated text values.
* 
Index search must be enabled before loading translations.
If you are using Windchill Service Information Manager, see Translation Package mechanism for loading translations.
1. Create an XML data file. Refer to the example below.
<?xml version="1.0" ?>
<!DOCTYPE NmLoader SYSTEM "standard12_1.dtd">
<NmLoader>
<csvBeginTranslationDictionaryEntrieshandler="com.ptc.core.td.LoadDictionary.beginProcessTranslationDictionaryEntries"/>
<csvTranslationDictionaryEntry handler="wt.td.LoadDictionary.createEntry">
<csvdictionaryName></csvdictionaryName>
<csvsourceLanguage></csvsourceLanguage>
<csvmasterText></csvmasterText>
<csvtargetLanguage></csvtargetLanguage>
<csvtranslatedText></csvtranslatedText>
</csvTranslationDictionaryEntry>

<csvTranslationDictionaryEntry handler="wt.td.LoadDictionary.createEntry">
<csvdictionaryName>wt.part.WTPart-_-PartInfo</csvdictionaryName>
<csvsourceLanguage>en</csvsourceLanguage>
<csvmasterText>test 2</csvmasterText>
<csvtargetLanguage>ja</csvtargetLanguage>
<csvtranslatedText>これは新しい部分ですこれは新しい部分です</csvtranslatedText>
</csvTranslationDictionaryEntry>
<csvEndTranslationDictionaryEntrieshandler="com.ptc.core.td.LoadDictionary.endProcessTranslationDictionaryEntries"/>
</NmLoader>
2. Run the following command in a Windchill shell. to import the XML data file:
windchill wt.load.LoadFromFile -d Load File Location -u username -p password
For example,
windchill wt.load.LoadFromFile -d LoadTranslations.xml -u username -p password
The following tags are used in the XML data file.
Element
Optional or Required
Data Type
Description
csvTranslationDictionaryEntry
Required
String
“handler” attribute, is required with wt.td.LoadDictonary.createEntry value.
csvdictionaryName
Required
String
One of the dictionary names used while defining theTranslated Text attribute.
csvsourceLanguage
Required
String
Name of the language enumeration entry available in the Available Languages global enumeration.
csvmasterText
Required
String
Text to be translated.
csvtargetLanguage
Required
String
Name of the language enumeration entry available in the Available Languages global enumeration.
csvtranslatedText
Required
String
Translated text.
* 
When creating a Translated Text attribute, the dictionary name is the Translation Dictionary property.
The source language is the Authoring Language.
The target language is the language into which you want to translate.
Support for Indexing
After the translation dictionary load process is complete, the objects that are affected by the importing translations are automatically indexed. For this, the index search must be enabled before importing the translations. For more information on indexing, see Index Search Administration.
Was this helpful?