mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
![]() * i18n: initial support for Finnish * i18n: add Finnish translations for rules * i18n: add Finnish translations for rules * i18n: translated using Weblate (Finnish) Currently translated at 99.6% (516 of 518 strings) Translation: Open Source/opensnitch * i18n: finalize Finnish translations * i18n: run Finnish translations through lrelease --------- Co-authored-by: Toni Lähdekorpi <toni.lahdekorpi@neuvo.ai> |
||
---|---|---|
.. | ||
locales | ||
generate_i18n.sh | ||
Makefile | ||
opensnitch_i18n.pro | ||
README.md |
Adding a new translation:
- Install needed packages:
apt install qtchooser pyqt5-dev-tools
- mkdir
locales/<YOUR LOCALE>/
(echo $LANG) - add the path to opensnitch_i18n.pro:
TRANSLATIONS += locales/es_ES/opensnitch-es_ES.ts \
locales/<YOUR LOCALE>/opensnitch-<YOUR LOCALE>.ts
- make
Updating translations:
- update translations definitions:
- pylupdate5 opensnitch_i18n.pro
- translate a language:
- linguist locales/es_ES/opensnitch-es_ES.ts
- create .qm file:
- lrelease locales/es_ES/opensnitch-es_ES.ts -qm locales/es_ES/opensnitch-es_ES.qm
or:
- make
- linguist locales/es_ES/opensnitch-es_ES.ts
- 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.