Last update: December 2009 (for RC-WinTrans 9) |
Localizing bilingual XLIFF files involves the translation of the files' <target> text elements and changing/updating their translation status attributes ("state").
As an extension of the GUI (graphical user interface), the support for XLIFF files includes a (HTML) display for the properties and actual XML data of a selected translation unit. An additional view showing the source XLIFF file is available in the Project window's Source File tab.
NOTE: XLIFF 1.0 files are not supported. However, an XLIFF 1.0 file may be used by changing its version number (in the file) to 1.1.
Target text is edited in the Target Text field of RC-WinTrans' Translation Edit bar, or via "inline editing" in the Text Table view. In general, target text translation and other features such as the spell check are supported in the same way as for all other file types.
Target text can be imported from an XLIFF file at any time by using the import command
See also: "Import from Translated Resource File."
Automatic Import When Adding a File to a Translation Project When adding an XLIFF file to a translation project the target text is carried over to the project database (and shown in the Text Table view's "Target" column) only when the project's active target language is the same as the target language specified in the "target-language" XLIFF file attribute. If the project's active target language is different then the target text column will remain empty (all elements must be translated).
The XLIFF "state" attribute value is automatically set by RC-WinTrans whenever a target text is edited. An item's state can be set manually in the Text Table view's "State" column (Figure 1) or by using the State Flag command from the Edit menu.
See also: "Setting Item Attributes and State Flags."
Statistics RC-WinTrans calculates the translation status for a file or project ("translated" or "not translated") based on the state flags that have been set:
Translation calculation and indication in RC-WinTrans occurs in the following views/displays:
"Changed Source" State In addition to the standard XLIFF state values, RC-WinTrans defines a "changed source" state used to indicate that a translation unit has already been translated but the original text in the source file has been modified. The underlying attribute value used in the XLIFF file is "x-change."
Color-Coded State Indication The colors used in the Text Table view to indicate a certain state can be determined in the Options dialog box. |
Figure 1: The "State" column in RC-WinTrans' Text Table view. Select the state to activate a combo-box containing the various item state options. |
An "extended data view" showing the actual XML data of the currently selected translation unit is also available. The view displays the <trans-unit> element in the source file and the <trans-unit> element in the target file.
Open the Extended View bar using the menu command provided by the XLIFF Files Add-On
Figure 2 shows the actual context of the <trans-unit> XML data as it appears in the XLIFF target file. A properties list, source file data display and changes history for the selected translation unit is provided by the menu bar located at the top of the view. The Source File view showing the original XLIFF file's data can be seen on the bottom left with the selected source text highlighted.
NOTE: The source data view shows the data as it actually appears in the source XLIFF file. Likewise, the target data view shows the data as it actually appears in the target XLIFF file (for the active target language). This means that a view of the source data is only available when the source XLIFF file exists (is available/accessible), and a view of the target data can only be generated when the translated target file exists. If the translation data has been modified the target file must be newly created in order to display the target file's data. |
Figure 2: Various views of the source and target data for a selected XLIFF file in RC-WinTrans. Top left: Text Table view; bottom left: Source File view; right: actual target data display in the Extended View bar.
|
Display The <note> element text is displayed in the following RC-WinTrans views:
Editing The <note> element text can be edited in the following RC-WinTrans views:
|
Figure 3: The Note field in the Translation Edit bar. |
Figure 4: Notes indication in the Text Table view. |
The actual content of a source XML file can be displayed for the active source file (active translation unit) in the Source File tab view (Project window).
|