opensnitch/ui/i18n/README.md
Gustavo Iñiguez Goia e05cb3a865 added support for internazionalization
Read ui/i18n/README.md for information about how to add new
languages.

requested here: #319
2021-01-02 21:40:19 +01:00

591 B

Adding a new translation:

  1. mkdir locales/<YOUR LOCALE>/ (echo $LANG)
  2. add the path to opensnitch_i18n.pro:
  TRANSLATIONS += locales/es_ES/opensnitch-es_ES.ts \
                  locales/<YOUR LOCALE>/opensnitch-<YOUR LOCALE>.ts
  1. make

Updating translations:

  1. update translations definitions:
  • pylupdate5 opensnitch_i18n.pro
  1. translate a language:
  • linguist locales/es_ES/opensnitch-es_ES.ts
  1. create .qm file:
  • lrelease locales/es_ES/opensnitch-es_ES.ts -qm locales/es_ES/es_ES.qm

or:

  1. make
  2. linguist locales/es_ES/opensnitch-es_ES.ts
  3. make