A dialog window opens from the D2000 CNF menu, tab Application parameters -> Generating the dictionary.
A generator will search the selected objects for texts which can contain keywords for the dictionary.
If these texts are not empty and they do not contain keywords, the generator will create a key (word) and it will store it (keyword, text) in the dictionary.
The text will be inserted into a language mutation given by the default language for the user to perform the automatic generating of a dictionary.
The generator also changes the configuration of selected objects to use the generated keywords.
The described process of generating can be controlled by the following dialog box:
Functional buttons
Functional buttons enable the control of various aspects of the generation of dictionaries.
The button will select objects for the generation of the dictionary. | |
The button will deselect objects for the generation of the dictionary. | |
The button will open selected objects for modification and key generation. | |
The button will save changes by:
| |
The button will close the dialog box without saving any changes. |
Keywords generation is performed in three steps:
- Pressing the button will open a list of objects in the current configuration.
The user can select the objects for the generation of the dictionary.
The list of objects contains only the types of objects that can be edited by the D2000 CNF (unavailable are e.g. pictures, graphs, ...). By closing the list of objects the selection is confirmed.
The selection can be used repetitively.
Removal of (previously selected) objects from the list is possible by clicking the button .
Selected objects are in the first column of the list. The second column contains their status. - After the selection of objects, it’s necessary to review their configuration and by pressing the button to locate the texts that can contain dictionary keywords.
Every selected object whose status is Selected or Open Error will be tested for opening for modification and if the test succeeds the configuration of this object will be inspected.
For all texts that can be inserted into the dictionary, a keyword will be generated and inserted to the list in the right pane of the dialog box.This list contains all texts in opened objects and their status in the following columns:
Column name Description Full KEY name Every text in the configuration of the object is uniquely determined by its name. This name is used as a key in the dictionary. It consists of object_name + object_property_name + sequence_number. A name constructed in this way can be longer than the maximum permitted keyword length, therefore it’ll be truncated if necessary. Dictionary KEY name Real key name for the dictionary (truncated if necessary). Status Text description of the keyword status: - ERR: cannot generate keyword
- An empty string in object’s configuration
- Text is translated
- New key generated
- Key exists with different text
- Key exists with necessary text
Text from the object’s configuration The text is contained in the configuration of the object. Text from dictionary Text will be the result of translating the text from the object’s configuration using the dictionary. Description of the keyword status:
State Description ERR: cannot generate keyword Internal error. It occurs if the process of automated key generation was unsuccessful for a given text. Empty string in object’s configuration The object’s configuration contains an empty string. No keys will be generated for empty strings. Already translated text Configuration of the object contains text which is already in the dictionary. No key will be generated for such a text. New key generated Text in the column Text from the object’s configuration will be inserted into the dictionary under a given key. The object’s configuration will be modified by replacing the text with the key. Key exists with different text Generated key already exists in the dictionary, but it’s assigned to a text different from the text in the object’s configuration. Action Save will not use this key. Key exists with necessary text Generated key already exists in the dictionary and it’s assigned to the same text as is in the object’s configuration. Action Save will not modify the dictionary, it’ll only modify the configuration of the object by replacing text with the key. Due to the amount of information displayed in the list of keys may be desirable to apply filters to display only:
A. Keys belonging to a certain object (choice Keys list for selected object/all keys).
B. Rows which will cause the change of configuration of the dictionary or of some of the selected objects. In this mode also rows reporting errors during key generation or rows indicating conflict "Key exists with another text".
- The last key in the generation of dictionaries is saving the dictionary by button .
Generation of dictionary can modify:
- All types of objects – parameters Description and Technical units
- HI menu, tab Menu – names of items: parameter Item
- Status text: column Texts
- Structure definition: Column Description
- Display mask: Description
- Structured variable: Row Description
0 komentárov