This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
generated from SteamDeckHomebrew/Plugin-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Translations
NGnius (Graham) edited this page Jan 11, 2023
·
2 revisions
Want to use PowerTools in a language other than English? Tired of the British monarchy? Then look no further than this page! Here's how to get started translating the user interface.
- Copy the template to a file editor
- Save the file with the four-letter (and dash) locale name of your language (e.g.
fr-CA
for Canadian French) - Familiarize yourself with the
po
format:
# comment
msgid "english string"
msgstr "translated string"
# and so on...
- For each pair of lines starting with msgid and msgstr (respectively), write the translated version of the phrase in quotes from the msgid line into the msgstr line (in the quotes).
- From the translations folder, upload your new translations file.
- Create a Pull Request (PR) so NGnius sees it and can add it into PowerTools
- Feel good for helping people
https://github.com/NGnius/PowerTools/issues/9
If all else fails read the reference manual for gettext translation