1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-04-19 19:59:11 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
e9a8112196 Fixed error handling 2025-03-21 05:56:17 +01:00
Nikolay Korotkiy
bca335d4b2
Translated using Weblate (Esperanto)
Currently translated at 91.2% (448 of 491 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/eo/
2025-03-20 22:55:09 +01:00
Nikolay Korotkiy
f3b1fa8eb7
Translated using Weblate (Russian)
Currently translated at 100.0% (491 of 491 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/ru/
2025-03-20 22:55:09 +01:00
Nikolay Korotkiy
fac377e746
Translated using Weblate (Finnish)
Currently translated at 96.7% (475 of 491 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/fi/
2025-03-20 22:55:09 +01:00
4 changed files with 15 additions and 12 deletions

View File

@ -172,7 +172,7 @@
<message> <message>
<location filename="../src/data/data.cpp" line="251"/> <location filename="../src/data/data.cpp" line="251"/>
<source>VTK files</source> <source>VTK files</source>
<translation type="unfinished"></translation> <translation>VTK dosieroj</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="252"/> <location filename="../src/data/data.cpp" line="252"/>

View File

@ -167,12 +167,12 @@
<message> <message>
<location filename="../src/data/data.cpp" line="250"/> <location filename="../src/data/data.cpp" line="250"/>
<source>70mai GPS log files</source> <source>70mai GPS log files</source>
<translation type="unfinished"></translation> <translation>70mai GPS -lokitiedostot</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="251"/> <location filename="../src/data/data.cpp" line="251"/>
<source>VTK files</source> <source>VTK files</source>
<translation type="unfinished"></translation> <translation>VTK-tiedostot</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="252"/> <location filename="../src/data/data.cpp" line="252"/>

View File

@ -167,12 +167,12 @@
<message> <message>
<location filename="../src/data/data.cpp" line="250"/> <location filename="../src/data/data.cpp" line="250"/>
<source>70mai GPS log files</source> <source>70mai GPS log files</source>
<translation type="unfinished"></translation> <translation>70mai GPS файлы</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="251"/> <location filename="../src/data/data.cpp" line="251"/>
<source>VTK files</source> <source>VTK files</source>
<translation type="unfinished"></translation> <translation>VTK файлы</translation>
</message> </message>
<message> <message>
<location filename="../src/data/data.cpp" line="252"/> <location filename="../src/data/data.cpp" line="252"/>
@ -837,7 +837,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1126"/> <location filename="../src/GUI/gui.cpp" line="1126"/>
<source>Error loading geo URI:</source> <source>Error loading geo URI:</source>
<translation type="unfinished"></translation> <translation>Ошибка загрузки гео URI:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="1132"/> <location filename="../src/GUI/gui.cpp" line="1132"/>

View File

@ -180,12 +180,15 @@ bool VTKParser::parse(QFile *file, QList<TrackData> &tracks,
_errorString = ""; _errorString = "";
while (true) { while (true) {
len = file->read((char*)&recordLen, 2); if ((len = file->read((char*)&recordLen, sizeof(recordLen)))
if (len < 0) { != sizeof(recordLen)) {
_errorString = "I/O error"; if (!len)
return false;
} else if (len == 0)
break; break;
else {
_errorString = "Error reading VTK record size";
return false;
}
}
recordLen = qFromLittleEndian(recordLen); recordLen = qFromLittleEndian(recordLen);
ba.resize(recordLen); ba.resize(recordLen);