skip to main content
OpenEdge Development: Translation Manager
Preparing Data for Translation : Specifying filters
 
Specifying filters
Usually, you will want to translate only a few of the text phrases in a source procedure; that is, only user‑interface text, not 4GL logic text. The Translation Manager lets you set filters so that the Translation Manager loads into the project database only those text phrases that you want to translate.
Because it is easier to remove text strings than add text strings, you should include text strings that you are not sure about. You can remove them later.
To specify filters:
1. From the Data tab folder, choose Filters. The Filter Wizard window appears. The Filter Wizard consists of thirteen panels that lead you through the process of specifying filters.
The first ten panels let you specify include filters — filters that determine the 4GL text phrases you want to place in the project database for translation. The last three panels let you specify exclude filters for 4GL keywords or specific text strings (for example, a company logo) that you do not want to translate. You can specify multiple filters—the number of filters you can specify is limited only by the size of the character string your system resources support. See the “Loading text phrases into the project database” section for details on how the Translation Manager uses these filters.
2. To accept the defaults and skip to the end of the Filter Wizard, choose Finish. The Filter Wizard displays a summary of the filters you defined.
If you would like to redefine your filters, use the Previous and Next buttons to navigate through the Filter Wizard and make changes. Then choose Finish to display an updated summary.
3. Choose Apply to set the filters.
The Translation Manager saves your filter settings in a table in the project database. You can redefine them by repeating Steps 1 through 3.
Note: The Filter Wizard assumes you are familiar with the 4GL language.
The following section describes how you can reuse your filters for multiple projects.
Exporting and importing filters
You can export a project filter to a text file so that you can use it in another project. When you export filters, the Translation Manager saves it as a table dump file (.d).
To export a filter:
1. Choose ToolsTranMan UtilitiesExport Filters. The Export to... dialog box appears:
2. Choose the directory that contains the filters that you want to export.
3. Enter the filter filename (the default filename is TM-fltrs) with a table dump file (.d) extension, then choose the Save button.
You can customize your filters, then import the filters into multiple projects. The filter file you import must be a text file with the source and target phrases separated by commas or spaces.
To import new filters into a project:
1. Choose ToolsTran UtilitiesImport Filters. The Import from... dialog appears:
2. If you import new filters, you replace the old filters. Choose OK to verify the import.
3. Choose the directory that contains the filters that you want to import.
4. Enter the filter filename (the default filename is TM-fltrs) with a table dump file (.d) extension, then choose the Open button.
5. Enter the code page for the glossary.
For information on loading the text phrases from the STRING-XREF file into the database using the defined filters, see the “Loading text phrases into the project database” section.