For now we won't detect it automatically, because we're using
QtCore.QLocale.system().name() to detect the language. This function
usually returns the language and country (en_UK, ...), but this
translation is not tied to any specific country (ar).
It can be configured manually from the Preferences, UI tab.
With PyQt5 we used plupdate5 + *.pro file to update the translations
file with new strings, extracted from the source code and UI forms.
In PyQt6, pylupdate6 doesn't support parsing .pro files, so we need to do it
manually.
The GUI has been ported to PyQt6.
New dependencies:
- python3-pyqt6
- python3-pyqt6.qtsvg (otherwise, the svg icons are not loaded)
On Arch and other systems qt6-svg is neeeded.
- pyqt6-dev-tools (for uic calls, .ui loading).
- libqt6sql6
Known issues:
- pylupdate6 not longer update .pro files.
It doesn't affect existing translations.
- There might be a delay closing the GUI. Reason still unknown.
Closes: #1009
Discussion: #1222
* 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>