opensnitch/ui/i18n
Gustavo Iñiguez Goia b404c4c631
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
ui,i18n: updated nl, it and tr translations
2025-12-13 11:58:40 +01:00
..
locales ui,i18n: updated nl, it and tr translations 2025-12-13 11:58:40 +01:00
generate_i18n.sh Update generate_i18n.sh - find lrelease 2025-08-16 11:09:31 +02:00
Makefile ui: updated i18n update procedure 2025-08-19 01:29:37 +02:00
opensnitch_i18n.pro i18n: translations update 2025-11-15 00:39:03 +01:00
README.md Update i18n instructions 2021-05-08 00:06:56 +02:00

Adding a new translation:

  1. Install needed packages: apt install qtchooser pyqt5-dev-tools
  2. mkdir locales/<YOUR LOCALE>/ (echo $LANG)
  3. 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/opensnitch-es_ES.qm

or:

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

Installing translations (manually)

In order to test a new translation:

mkdir -p /usr/lib/python3/dist-packages/opensnitch/i18n/<YOUR LOCALE>/ cp locales/<YOUR LOCALE>/opensnitch-<YOUR LOCALE>.qm /usr/lib/python3/dist-packages/opensnitch/i18n/<YOUR LOCALE>/

Note: the destination path may vary depending on your system.