Command 'Import/Export Text Lists'Permalink

Symbol: _cds_icon_export_import_textlists

Function: This command exports an active text list, imports a file, or matches a text list with a file. The file has the CSV format. The “Import/Export” dialog provides options for this.

Call: Menu bar: “Text List  Import/Export Text Lists”; context menu

Requirement: A text list or global text list is active.

Dialog 'Import/Export'

“Select File for Import”

File that CODESYS reads.

_cds_icon_button_threedots opens the dialog “Select Text List File” for you to select a file.

“Select export file”

File that CODESYS writes to.

_cds_icon_button_threedots opens the dialog “Select Text List File” for you to select a file and directory.

Table 887: “Import/Export Type”

“Import”

Requirement: A file is selected in “Select file for compare or import”.

The file can contain text list entries for both the global text list and text lists.

Global text list

  • CODESYS reads the file, compares the text list entries for the same source text, and accepts differences in the translations. CODESYS overwrites any translations in the project.

Text lists

  • CODESYS reads the file, compares the text list entries for the same ID, and accepts differences in the source text and translations into the project. CODESYS overwrites any text list entries in the project.

  • If the file contains a new ID, then the text list entry is imported into the text list of the project and the text list is added.

“Import replacement file”

Requirement: A replacement file is selected in “Select file for compare or import”.

The replacement file contains replacements for the global text list.

CODESYS processes the replacement file row by row and performs the specified replacements in the global text list.

The structure of the replacement file is described in the section "Managing static text in a global text list".

“Export”

Requirement: The file that CODESYS writes to is selected in “Select export file”.

CODESYS exports all texts from all text lists of the current project. All languages available in the project are inserted as columns in the export file. The file can be used for the external translation of the language-dependent texts.

“Export text differences only”

Requirement: An import file is selected for the comparison in “Select file for compare or export”, and an export file that CODESYS writes to is selected in “Select export file”.

CODESYS reads the import file and then uses that information to compare the rows of the active text list. CODESYS ignores the rows that match. If rows differ, then CODESYS writes the row to the export file and, if necessary, copies translations from the text list. CODESYS accepts the translations from the import file and overwrites them if necessary.

See also