Skip to content

Modify a translation

fr3ak2402 edited this page Sep 28, 2023 · 3 revisions

Modifying the translation

To change a translation the .po file must be adjusted. The .po of the translations are located in the folder localization/i18n.

The folder of the respective language is named after the ISO 639-1 Language Code.

A list of ISO 639-1 language codes can be found at the following link: ISO 639-1 Language Codes List

When you open the file in the language folder, you can modify the translation of the language to be translated under the English translation. When the translation is finished, save the changes in the file.

Creation of the final translation files

To finalize the translation, you need to run the script again.

You open the console of the operating system and change to the folder of the GalaxySlicer source code and enter the following command:

Windows

run_gettext.bat --full

macOS

run_gettext.sh --full

Testing the translation

To test the translation, the slicer must be compiled. For more information on compiling the slicer, see the following link: Compile GalaxySlicer