opnsense / lang

Language translations for OPNsense core and plugins
https://translate.opnsense.org/
18 stars 61 forks source link

OPNsense language translation kit

The kit requires additional tools in order to properly extract strings from the source code. You'll need to run this once locally:

# pkg install gettext-tools p5-Locale-Maketext-Lexicon python39
# cd /usr/local/bin && ln -sfn python3.9 python3

Fetch the latest translations (having set up poeditor.apikey file):

# make fetch

Test the updated translations for errors or run a cleanup if necessary:

# make test
# make cleanse

At this point a release can be tagged and used for building a new language package via ports.git/opnsense/lang port.

In order to get new strings into the template the source strings that cannot be found in the template generation step (XML contents, etc.) must be executed first:

# make src

Regenerate the translation template using:

# make template

The POT file can be uploaded at this point. Then merge the latest template changes into the actual translations by using fetch again:

# make fetch

Remove the compiled translation files from the system/chroot:

# make clean

Translation guidelines