Translator - Example panel translation

This example shows how to add translations to a panel using the translator functionality.

  1. Open a new panel in the GEDI.
  2. Add a rectangle.
  3. Add a push button with the following code to the Clicked Script:
    1. RECTANGLE1.backCol("red");
  4. Copy the push button twice and modify the script to replace the color "red" with "blue" and "green".
  5. Set a text for the button labels in the source language and make sure the Auto field for the automatic translation is checked.
  6. Open the Translator Panel via Tools > Translator file update and click the Update translation filesbutton.
    The translation file for your project is created and shown in the "translation files" area.
  7. Open the file in the Linguist tool via the Start linguist for selected file button.
  8. Your new translation entries are still marked with the question mark. Select one of them and add the translation into the Translation in German field. Set the entry to "done" with the check mark button in the menu bar.
  9. Translate the other new entries and set them to "done".
  10. Save the translation file and close the Linguist window.
  11. Click the Create .qm files button in the Translation operationsarea to update the translations for the target project.
  12. Close the Translation panel.

The translations have been added to the panel and will be shown when the display language is changed.