-
-
Notifications
You must be signed in to change notification settings - Fork 57
Adding translations (manually)
Eduardo Mozart de Oliveira edited this page Feb 3, 2025
·
2 revisions
If your preferred language is missing. You can add your own translation on Transifex service or manually with the following steps:
- Go to the plugin folder
- Switch to the folder locales
- Copy one of the already existing .po files
- Rename it into the correct notation of your language
- Edit the file, edit msgstr to change the translation, do not touch the msgid
- Edit the header especially the "Language: "
- When the file is ready, then you need to compile it with: msgfmt -o filename.mo filename.po
- If msgfmt is not found, install the package gettext (apt install -y gettext)
- If you edit a previous translation, you may need to update the translation cache: go to Setup - General - Performance, enable Debug mode, clear translation cache
Tip: You can also use POEdit to edit and compile a .po file to .mo through UI.