Add loading firmware list message, fix windows-build.bat path

This commit is contained in:
Piotr Dobrowolski 2018-09-04 12:44:51 +02:00
parent 6031cf8213
commit e12f27c1e1
4 changed files with 25 additions and 27 deletions

View File

@ -1,4 +1,4 @@
cd .. cd %~dp0\..
if not exist build mkdir build if not exist build mkdir build

View File

@ -75,9 +75,6 @@
<property name="editable"> <property name="editable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="currentText">
<string>master</string>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="2" column="0" colspan="2">

View File

@ -4,30 +4,25 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../luftdaten-tool.py" line="147"/> <location filename="../luftdaten-tool.py" line="199"/>
<source>No boards found</source> <source>No boards found</source>
<translation>Nie znaleziono płytki</translation> <translation>Nie znaleziono płytki</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="152"/> <location filename="../luftdaten-tool.py" line="204"/>
<source>Others...</source> <source>Others...</source>
<translation>Inne...</translation> <translation>Inne...</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="181"/> <location filename="../luftdaten-tool.py" line="233"/>
<source>No device selected.</source> <source>No device selected.</source>
<translation>Nie wybrano urządzenia.</translation> <translation>Nie wybrano urządzenia.</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="185"/> <location filename="../luftdaten-tool.py" line="237"/>
<source>No version selected.</source> <source>No version selected.</source>
<translation>Nie wybrano wersji.</translation> <translation>Nie wybrano wersji.</translation>
</message> </message>
<message>
<location filename="../gui/mainwindow.py" line="130"/>
<source>Luftdaten.info Flashing Tool</source>
<translation></translation>
</message>
<message> <message>
<location filename="../gui/mainwindow.py" line="131"/> <location filename="../gui/mainwindow.py" line="131"/>
<source>Board:</source> <source>Board:</source>
@ -40,58 +35,63 @@
</message> </message>
<message> <message>
<location filename="../gui/mainwindow.py" line="133"/> <location filename="../gui/mainwindow.py" line="133"/>
<source>master</source>
<translation>master</translation>
</message>
<message>
<location filename="../gui/mainwindow.py" line="134"/>
<source>Upload</source> <source>Upload</source>
<translation>Wgraj</translation> <translation>Wgraj</translation>
</message> </message>
<message> <message>
<location filename="../gui/mainwindow.py" line="135"/> <location filename="../gui/mainwindow.py" line="134"/>
<source>Expert mode</source> <source>Expert mode</source>
<translation>Tryb eksperta</translation> <translation>Tryb eksperta</translation>
</message> </message>
<message> <message>
<location filename="../gui/mainwindow.py" line="136"/> <location filename="../gui/mainwindow.py" line="135"/>
<source>Baudrate:</source> <source>Baudrate:</source>
<translation>Prędkość portu:</translation> <translation>Prędkość portu:</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="200"/> <location filename="../luftdaten-tool.py" line="252"/>
<source>Invalid version / file does not exist</source> <source>Invalid version / file does not exist</source>
<translation>Błędna wersja / plik nie istnieje</translation> <translation>Błędna wersja / plik nie istnieje</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="205"/> <location filename="../luftdaten-tool.py" line="257"/>
<source>Work in progess...</source> <source>Work in progess...</source>
<translation>Praca w toku...</translation> <translation>Praca w toku...</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="233"/> <location filename="../luftdaten-tool.py" line="284"/>
<source>Downloading...</source> <source>Downloading...</source>
<translation>Pobieranie...</translation> <translation>Pobieranie...</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="244"/> <location filename="../luftdaten-tool.py" line="296"/>
<source>Connecting...</source> <source>Connecting...</source>
<translation>Łączenie...</translation> <translation>Łączenie...</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="249"/> <location filename="../luftdaten-tool.py" line="301"/>
<source>Connected. Chip type: {chip_type}</source> <source>Connected. Chip type: {chip_type}</source>
<translation>Połączono. Typ układu: {chip_type}</translation> <translation>Połączono. Typ układu: {chip_type}</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="267"/> <location filename="../luftdaten-tool.py" line="319"/>
<source>Writing at 0x{address:08x}...</source> <source>Writing at 0x{address:08x}...</source>
<translation>Zapisywanie pod adresem 0x{address:08x}...</translation> <translation>Zapisywanie pod adresem 0x{address:08x}...</translation>
</message> </message>
<message> <message>
<location filename="../luftdaten-tool.py" line="278"/> <location filename="../luftdaten-tool.py" line="330"/>
<source>Finished in {time:.2f} seconds. Sensor ID: {sensor_id}</source> <source>Finished in {time:.2f} seconds. Sensor ID: {sensor_id}</source>
<translation>Zakończono w {time:.2f} sekundy. ID sensora: {sensor_id}</translation> <translation>Zakończono w {time:.2f} sekundy. ID sensora: {sensor_id}</translation>
</message> </message>
<message>
<location filename="../gui/mainwindow.py" line="130"/>
<source>Luftdaten.info Flashing Tool</source>
<translation>Luftdaten.info Flashing Tool</translation>
</message>
<message>
<location filename="../luftdaten-tool.py" line="138"/>
<source>Loading firmware list...</source>
<translation>Ładowanie wersji oprogramowania...</translation>
</message>
</context> </context>
</TS> </TS>

View File

@ -135,6 +135,7 @@ class MainWindow(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
self.i18n_init(QtCore.QLocale.system()) self.i18n_init(QtCore.QLocale.system())
self.statusbar.showMessage(self.tr("Loading firmware list..."))
self.firmware_list = FirmwareListThread() self.firmware_list = FirmwareListThread()
self.firmware_list.onFirmware.connect(self.populate_versions) self.firmware_list.onFirmware.connect(self.populate_versions)
self.firmware_list.start() self.firmware_list.start()