Help for Creating XLIFF Data Files

 

The two primary tasks of a file converter are to read a source file format and to create an XML (XLIFF) data file for RC-WinTrans to use internally.

 

To create and build up an XLIFF data file, RC-WinTrans provides a helper object (RC-WinTrans COM Object Model) called "XliffFile."  Use the "XliffFile" object to add the data that's read from the source file to an XLIFF format file.  This object has only a few methods and is used solely for the purpose of creating an XLIFF file in the simplest manner possible, without any previous knowledge of the XLIFF format.

 

There are three things you need to know before you begin:

1.

A file section must be created first before the data is added.

Method: "AddFileSection"

2.

Data (source text) is added to the XLIFF file as a single translation unit (TU).

Method: "AddTransUnit"

3.

Translation units can be grouped by creating a group and adding TUs to it.

Method: "AddGroup"

 

·

XliffFile  (RC-WinTrans VBA Object)

The "XliffFile" object represents an XLIFF file with groups, translation units, and properties. Each element added gets its own specific node number.  This object assists in building up a new XLIFF data file.

(Methods)

·

AddFileSection   –   Adds a new file section to the XLIFF file.  One (and only one) file section must be created first before adding data.

·

AddGroup   –   Adds a group to the node with the given node number.

·

AddTransUnit   –   Adds a translation unit to the node with the given node number.

·

AddProperty   –   Adds a property to the node with the given node number.

·

AddNote   –   Adds a note (or description) to a translation unit.

·

Save   –   Saves the XLIFF file.

 

NOTE:  A description of the "XliffFile" object including code examples can be found in RC-WinTrans' VBA Help (help for RC-WinTrans' COM object model).  This object is also used in the sample file converter "File Converter for ADM Files."