Tools ModelTranslationEditor

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Expecco uses two separate translation schemes:

  1. National language translations for the GUI
  2. National language translations for Model elements.

Both languages can be changed independently in the settings dialog ("Extras" -> "Settings" -> "Language"). However, the translation information is stored in separate places.

  • The translation strings for the GUI are bundled with the original distribution coming from exept, and more or less fix (although, a knowledgable user can easily add new languages and/or modify existing language translations, as these files are plain regular text files).
  • The model language translations are stored in the project-file itself, and are attached to the top-level "Project" tree item. These are stored in and transported with the testSuite-file.

Model language translations are added, modified and possibly removed using the "Model Translation Editor", which is opened via the "Extra" -> "Translations" menu item.

For development in a multi-language environment, it is a good strategy for the team, to choose one language (usually: english) as the primary language, and base all translations on that. However, this is not a strict requirement: any language can be added later at any time and in any order. Thus, it is also possible to start in German, and add French, Italian and English translations later.

For the following example, we assume, that the tree elements are named in english:

ModelLanguage Tree1.png

and translations are to be added in German and French.

Perform the following steps:

  1. open the "Model Language Editor",
  2. Fetch all existing tree-element names via the "Tools" -> "Fetch Names from Tree" menu item.
  3. specify the language to be added (i.e. select "de")
  4. add the translation, by selecting an untranslated name and editong its "translated" value
  5. change the language to "fr" and repeat the previous step
  6. confirm by saving via the "Save" menu item.

ModelLanguage Editor1.png

To see the effect, in you tree/diagrams, change the model language in the settings dialog.

ModelLanguage Tree2.png

Notice: as the length of word differs by some 20-30% among languages, some steps may now be too small to show some of the now possibly longer names. Therefore, it is a good idea, to reserve some space for every new step, by making themt from the start.



  Back to Online Documentation.

Meine Werkzeuge