Skip to content

Commit 79b9af9

Browse files
committed
- updating translations before updating the resource file makes much more sense lol
1 parent 456d5bf commit 79b9af9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/frontend/update.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ Set-Location -Path $PSScriptRoot
88
pyside6-uic UI/form_main_window.ui -o UI/ui_form_main_window.py
99
pyside6-uic UI/form_android.ui -o UI/ui_form_android.py
1010

11-
12-
# Process resource file
13-
Write-Output "Processing resource file..."
14-
pyside6-rcc resources.qrc -o UI/resources.py
15-
1611
# Update translations
1712
Write-Output "Updating translations..."
1813
# Translations
@@ -24,4 +19,10 @@ pyside6-lrelease translations/de_DE.ts -qm translations/de_DE.qm
2419
pyside6-lrelease translations/zh_CN.ts -qm translations/zh_CN.qm
2520
pyside6-lrelease translations/fr.ts -qm translations/fr.qm
2621

22+
23+
# Process resource file
24+
Write-Output "Processing resource file..."
25+
pyside6-rcc resources.qrc -o UI/resources.py
26+
27+
2728
Write-Output "UI update completed successfully!"

src/frontend/update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
pyside6-uic UI/form_main_window.ui -o UI/ui_form_main_window.py
44
pyside6-uic UI/form_android.ui -o UI/ui_form_android.py
55

6-
# Resource file
7-
pyside6-rcc resources.qrc -o UI/resources.py
8-
96
# Translations
107
pyside6-lupdate ../../main.py ../backend/class_help.py UI/form_main_window.ui UI/ui_form_main_window.py -ts translations/en.ts -no-obsolete
118
pyside6-lupdate ../../main.py ../backend/class_help.py UI/form_main_window.ui UI/ui_form_main_window.py -ts translations/de_DE.ts -no-obsolete
@@ -15,3 +12,6 @@ pyside6-lrelease translations/de_DE.ts -qm translations/de_DE.qm
1512
pyside6-lrelease translations/zh_CN.ts -qm translations/zh_CN.qm
1613
pyside6-lrelease translations/fr.ts -qm translations/fr.qm
1714

15+
16+
# Resource file
17+
pyside6-rcc resources.qrc -o UI/resources.py

0 commit comments

Comments
 (0)