QTranslator uses ui_languages to find translation

Loading translations was very static, now we use the array, the user
set in the gui to find a translation file.
This commit is contained in:
2023-01-06 13:56:33 +01:00
parent d0e6eefd0e
commit dee2da0d8c
2 changed files with 7 additions and 6 deletions

View File

@@ -60,9 +60,9 @@ install:
.PHONY: build install
## PyInstaller
installer_mac: all
installer_mac:
$(PYTHON) -m PyInstaller -n "RevPi Commander" \
--add-data="src/$(PACKAGE)/locale:locale" \
--add-data="src/$(PACKAGE)/locale:./revpicommander/locale" \
--add-data="data/$(PACKAGE).icns:." \
--icon=data/$(PACKAGE).icns \
--noconfirm \
@@ -78,6 +78,6 @@ installer_win: all
## Clean
clean:
rm -rf build dist src/*.egg-info src/$(PACKAGE)/ui/[^__]*.py *.spec
rm -rf build dist src/*.egg-info *.spec
.PHONY: clean