mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
974 B
974 B
Adding translations to Gopher64
- Copy and modify the
gopher64.potfile in this directory with your translations. - Rename it to
gopher64.poand put it here:data/translations/<lang>/LC_MESSAGES/gopher64.po
See here for more details on creating a .po file. I recommend using a program like poedit to create the .po file from the template.
For example, in the .pot file you will see:
#: src/ui/gui/about_page.slint:17
msgctxt "NewVersionButton"
msgid "New version available! Click here to download"
msgstr ""
A translation will look something like this:
#: src/ui/gui/about_page.slint:17
msgctxt "NewVersionButton"
msgid "New version available! Click here to download"
msgstr "Nova versão disponível! Clique aqui para baixar"
The only line you modify is the msgstr. The msgctxt and msgid need to remain unchanged.