CategoryImport / FileParser

Purpose

Enables import of Transit files.

Bootstrap Class

editor_Plugins_Transit_Bootstrap
TypeCore plug-in (delivered with translate5 core)

Description

Enhances the default import process, so that it can deal with the special file structure of Transit files.

For export transit files several configuration parameters are available, see below.

If exporting with "diff" enabled, the additions and removes of text, are marked with <ins> and <del> tags.

Configuration

Config nameValuesDefaultDescription
runtimeOptions.plugins.transit.writeInfoField.enabled0 or 10decides, if information is added to the target-infofield of a segment- further config values decide, which information.
runtimeOptions.plugins.transit.writeInfoField.exportDate0 or 10decides, if exportdate is written to infofield.
runtimeOptions.plugins.transit.writeInfoField.manualStatus0 or 10decides, if manualStatus is written to infofield.
runtimeOptions.plugins.transit.writeInfoField.termsWithoutTranslation0 or 10decides, if SourceTermsWithoutTranslation are written to infofield.
runtimeOptions.plugins.transit.writeInfoField.exportDateValueDate Optional, if empty the current date is used. If a specific date should be used, configure it in the form: YYYY-MM-DD
runtimeOptions.plugins.transit.exportOnlyEditable0 or 11Per default only the content of editable segments is written back to transit file. This does not influence the Info Field!

Writing to Transit info-field

As described in the configuration section, several additional information can be written to the segments info-field in the transit file. This are basically:

Example strings:

  ###RefMat-Update 16.09.2015: NO_QUALITY_STATE_SET_BY_USER; QuellTerme: Bauteil; ZielTerme: component part;
###RefMat-Update 16.09.2015: Status 4

In the last example no other terms were corrected, so no terms are listed in the Infofield.

Debugging

Adding the following line to your installation.ini enables debugging output for Transit Plugin.

  runtimeOptions.debug.plugin.Transit = 1

Enabled debugging with the value 1 enables more verbose output in using transit im and export.