Renamed lcUpdateDialog.

This commit is contained in:
Leonardo Zide
2026-03-30 22:50:17 -07:00
parent 9ccf245373
commit 4939ad2c31
14 changed files with 245 additions and 254 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
#include "lc_viewwidget.h"
#include "lc_colorlist.h"
#include "lc_qutils.h"
#include "lc_qupdatedialog.h"
#include "lc_updatedialog.h"
#include "lc_aboutdialog.h"
#include "lc_setsdatabasedialog.h"
#include "lc_qhtmldialog.h"
@@ -1299,7 +1299,7 @@ void lcMainWindow::Print(QPrinter* Printer)
void lcMainWindow::ShowUpdatesDialog()
{
lcQUpdateDialog Dialog(this, false);
lcUpdateDialog Dialog(this, false);
Dialog.exec();
}
+147
View File
@@ -0,0 +1,147 @@
#include "lc_global.h"
#include "lc_updatedialog.h"
#include "ui_lc_qupdatedialog.h"
#include "lc_application.h"
#include "lc_library.h"
#include "lc_profile.h"
#include "lc_http.h"
void lcDoInitialUpdateCheck()
{
int UpdateFrequency = lcGetProfileInt(LC_PROFILE_CHECK_UPDATES);
if (UpdateFrequency == 0)
return;
QSettings Settings;
QDateTime CheckTime = Settings.value("Updates/LastCheck", QDateTime()).toDateTime();
if (!CheckTime.isNull())
{
QDateTime NextCheckTime = CheckTime.addDays(UpdateFrequency == 1 ? 1 : 7);
if (NextCheckTime > QDateTime::currentDateTimeUtc())
return;
}
new lcUpdateDialog(nullptr, true);
}
lcUpdateDialog::lcUpdateDialog(QWidget* Parent, bool InitialUpdate)
: QDialog(Parent), ui(new Ui::lcUpdateDialog), mInitialUpdate(InitialUpdate)
{
ui->setupUi(this);
connect(this, SIGNAL(finished(int)), this, SLOT(finished(int)));
ui->status->setText(tr("Connecting to update server..."));
mHttpManager = new lcHttpManager(this);
connect(mHttpManager, &lcHttpManager::DownloadFinished, this, &lcUpdateDialog::DownloadFinished);
mHttpManager->DownloadFile(QLatin1String("https://www.leocad.org/updates.txt"));
}
lcUpdateDialog::~lcUpdateDialog()
{
delete ui;
}
void lcUpdateDialog::accept()
{
QSettings Settings;
Settings.setValue("Updates/IgnoreVersion", mVersionData);
QDialog::accept();
}
void lcUpdateDialog::finished(int result)
{
Q_UNUSED(result);
if (mInitialUpdate)
deleteLater();
}
void lcUpdateDialog::DownloadFinished(lcHttpReply* Reply)
{
bool UpdateAvailable = false;
if (Reply->error() == QNetworkReply::NoError)
{
int MajorVersion, MinorVersion, PatchVersion;
int Parts;
mVersionData = Reply->readAll();
const char* Update = mVersionData;
QSettings Settings;
QByteArray IgnoreUpdate = Settings.value("Updates/IgnoreVersion", QByteArray()).toByteArray();
if (mInitialUpdate && IgnoreUpdate == mVersionData)
{
UpdateAvailable = false;
}
else if (sscanf(Update, "%d.%d.%d %d", &MajorVersion, &MinorVersion, &PatchVersion, &Parts) == 4)
{
QString Status;
if (MajorVersion > LC_VERSION_MAJOR)
UpdateAvailable = true;
else if (MajorVersion == LC_VERSION_MAJOR)
{
if (MinorVersion > LC_VERSION_MINOR)
UpdateAvailable = true;
else if (MinorVersion == LC_VERSION_MINOR)
{
if (PatchVersion > LC_VERSION_PATCH)
UpdateAvailable = true;
}
}
if (UpdateAvailable)
Status = QString(tr("<p>There's a newer version of LeoCAD available for download (%1.%2.%3).</p>")).arg(QString::number(MajorVersion), QString::number(MinorVersion), QString::number(PatchVersion));
else
Status = tr("<p>You are using the latest LeoCAD version.</p>");
lcPiecesLibrary* Library = lcGetPiecesLibrary();
if (Library->mNumOfficialPieces)
{
if (Parts > Library->mNumOfficialPieces)
{
Status += tr("<p>There are new parts available.</p>");
UpdateAvailable = true;
}
else
Status += tr("<p>There are no new parts available at this time.</p>");
}
if (UpdateAvailable)
{
Status += tr("<p>Visit <a href=\"https://github.com/leozide/leocad/releases\">https://github.com/leozide/leocad/releases</a> to download.</p>");
}
ui->status->setText(Status);
}
else
ui->status->setText(tr("Error parsing update information."));
Settings.setValue("Updates/LastCheck", QDateTime::currentDateTimeUtc());
}
else
ui->status->setText(tr("Error connecting to the update server."));
if (mInitialUpdate)
{
if (UpdateAvailable)
show();
else
deleteLater();
}
if (UpdateAvailable)
ui->buttonBox->setStandardButtons(QDialogButtonBox::Close | QDialogButtonBox::Ignore);
else
ui->buttonBox->setStandardButtons(QDialogButtonBox::Close);
}
@@ -1,37 +1,33 @@
#pragma once
#include <QDialog>
class lcHttpReply;
class lcHttpManager;
namespace Ui {
class lcQUpdateDialog;
class lcUpdateDialog;
}
void lcDoInitialUpdateCheck();
class lcQUpdateDialog : public QDialog
class lcUpdateDialog : public QDialog
{
Q_OBJECT
public:
explicit lcQUpdateDialog(QWidget* Parent, bool InitialUpdate);
~lcQUpdateDialog();
lcUpdateDialog(QWidget* Parent, bool InitialUpdate);
virtual ~lcUpdateDialog();
void parseUpdate(const char *update);
void ParseUpdate(const char* Update);
public slots:
void DownloadFinished(lcHttpReply* Reply);
void accept() override;
void reject() override;
void finished(int result);
private:
Ui::lcQUpdateDialog *ui;
Ui::lcUpdateDialog *ui;
lcHttpManager* mHttpManager;
QByteArray versionData;
QByteArray mVersionData;
bool mInitialUpdate;
};
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>lcQUpdateDialog</class>
<widget class="QDialog" name="lcQUpdateDialog">
<class>lcUpdateDialog</class>
<widget class="QDialog" name="lcUpdateDialog">
<property name="geometry">
<rect>
<x>0</x>
@@ -20,7 +20,7 @@
<string/>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
@@ -30,10 +30,10 @@
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel</set>
<set>QDialogButtonBox::StandardButton::Cancel</set>
</property>
</widget>
</item>
@@ -44,7 +44,7 @@
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>lcQUpdateDialog</receiver>
<receiver>lcUpdateDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
@@ -60,7 +60,7 @@
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>lcQUpdateDialog</receiver>
<receiver>lcUpdateDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
+11 -11
View File
@@ -227,6 +227,7 @@ SOURCES += \
common/lc_thumbnailmanager.cpp \
common/lc_timelinewidget.cpp \
common/lc_traintrack.cpp \
common/lc_updatedialog.cpp \
common/lc_view.cpp \
common/lc_viewmanipulator.cpp \
common/lc_viewsphere.cpp \
@@ -238,7 +239,6 @@ SOURCES += \
qt/lc_qhtmldialog.cpp \
qt/lc_qpreferencesdialog.cpp \
qt/lc_qimagedialog.cpp \
qt/lc_qupdatedialog.cpp \
qt/lc_qutils.cpp \
qt/lc_renderdialog.cpp \
qt/lc_setsdatabasedialog.cpp
@@ -306,6 +306,7 @@ HEADERS += \
common/lc_thumbnailmanager.h \
common/lc_timelinewidget.h \
common/lc_traintrack.h \
common/lc_updatedialog.h \
common/lc_view.h \
common/lc_viewmanipulator.h \
common/lc_viewsphere.h \
@@ -316,20 +317,11 @@ HEADERS += \
qt/lc_qhtmldialog.h \
qt/lc_qpreferencesdialog.h \
qt/lc_qimagedialog.h \
qt/lc_qupdatedialog.h \
qt/lc_qutils.h \
qt/lc_renderdialog.h \
qt/lc_setsdatabasedialog.h \
common/lc_partpalettedialog.h
FORMS += \
qt/lc_qselectdialog.ui \
qt/lc_qpropertiesdialog.ui \
qt/lc_qhtmldialog.ui \
qt/lc_qpreferencesdialog.ui \
qt/lc_qimagedialog.ui \
qt/lc_qupdatedialog.ui \
qt/lc_renderdialog.ui \
qt/lc_setsdatabasedialog.ui \
common/lc_aboutdialog.ui \
common/lc_arraydialog.ui \
common/lc_categorydialog.ui \
@@ -338,7 +330,15 @@ FORMS += \
common/lc_minifigdialog.ui \
common/lc_modellistdialog.ui \
common/lc_pagesetupdialog.ui \
common/lc_partpalettedialog.ui
common/lc_partpalettedialog.ui \
common/lc_updatedialog.ui \
qt/lc_qselectdialog.ui \
qt/lc_qpropertiesdialog.ui \
qt/lc_qhtmldialog.ui \
qt/lc_qpreferencesdialog.ui \
qt/lc_qimagedialog.ui \
qt/lc_renderdialog.ui \
qt/lc_setsdatabasedialog.ui
OTHER_FILES +=
RESOURCES += leocad.qrc resources/stylesheet/stylesheet.qrc
-152
View File
@@ -1,152 +0,0 @@
#include "lc_global.h"
#include "lc_qupdatedialog.h"
#include "ui_lc_qupdatedialog.h"
#include "lc_application.h"
#include "lc_library.h"
#include "lc_profile.h"
#include "lc_http.h"
void lcDoInitialUpdateCheck()
{
int updateFrequency = lcGetProfileInt(LC_PROFILE_CHECK_UPDATES);
if (updateFrequency == 0)
return;
QSettings settings;
QDateTime CheckTime = settings.value("Updates/LastCheck", QDateTime()).toDateTime();
if (!CheckTime.isNull())
{
QDateTime NextCheckTime = CheckTime.addDays(updateFrequency == 1 ? 1 : 7);
if (NextCheckTime > QDateTime::currentDateTimeUtc())
return;
}
new lcQUpdateDialog(nullptr, true);
}
lcQUpdateDialog::lcQUpdateDialog(QWidget* Parent, bool InitialUpdate)
: QDialog(Parent), ui(new Ui::lcQUpdateDialog), mInitialUpdate(InitialUpdate)
{
ui->setupUi(this);
connect(this, SIGNAL(finished(int)), this, SLOT(finished(int)));
ui->status->setText(tr("Connecting to update server..."));
mHttpManager = new lcHttpManager(this);
connect(mHttpManager, SIGNAL(DownloadFinished(lcHttpReply*)), this, SLOT(DownloadFinished(lcHttpReply*)));
mHttpManager->DownloadFile(QLatin1String("https://www.leocad.org/updates.txt"));
}
lcQUpdateDialog::~lcQUpdateDialog()
{
delete ui;
}
void lcQUpdateDialog::accept()
{
QSettings settings;
settings.setValue("Updates/IgnoreVersion", versionData);
QDialog::accept();
}
void lcQUpdateDialog::reject()
{
QDialog::reject();
}
void lcQUpdateDialog::finished(int result)
{
Q_UNUSED(result);
if (mInitialUpdate)
deleteLater();
}
void lcQUpdateDialog::DownloadFinished(lcHttpReply *reply)
{
bool updateAvailable = false;
if (reply->error() == QNetworkReply::NoError)
{
int majorVersion, minorVersion, patchVersion;
int parts;
versionData = reply->readAll();
const char *update = versionData;
QSettings settings;
QByteArray ignoreUpdate = settings.value("Updates/IgnoreVersion", QByteArray()).toByteArray();
if (mInitialUpdate && ignoreUpdate == versionData)
{
updateAvailable = false;
}
else if (sscanf(update, "%d.%d.%d %d", &majorVersion, &minorVersion, &patchVersion, &parts) == 4)
{
QString status;
if (majorVersion > LC_VERSION_MAJOR)
updateAvailable = true;
else if (majorVersion == LC_VERSION_MAJOR)
{
if (minorVersion > LC_VERSION_MINOR)
updateAvailable = true;
else if (minorVersion == LC_VERSION_MINOR)
{
if (patchVersion > LC_VERSION_PATCH)
updateAvailable = true;
}
}
if (updateAvailable)
status = QString(tr("<p>There's a newer version of LeoCAD available for download (%1.%2.%3).</p>")).arg(QString::number(majorVersion), QString::number(minorVersion), QString::number(patchVersion));
else
status = tr("<p>You are using the latest LeoCAD version.</p>");
lcPiecesLibrary* library = lcGetPiecesLibrary();
if (library->mNumOfficialPieces)
{
if (parts > library->mNumOfficialPieces)
{
status += tr("<p>There are new parts available.</p>");
updateAvailable = true;
}
else
status += tr("<p>There are no new parts available at this time.</p>");
}
if (updateAvailable)
{
status += tr("<p>Visit <a href=\"https://github.com/leozide/leocad/releases\">https://github.com/leozide/leocad/releases</a> to download.</p>");
}
ui->status->setText(status);
}
else
ui->status->setText(tr("Error parsing update information."));
settings.setValue("Updates/LastCheck", QDateTime::currentDateTimeUtc());
}
else
ui->status->setText(tr("Error connecting to the update server."));
if (mInitialUpdate)
{
if (updateAvailable)
show();
else
deleteLater();
}
if (updateAvailable)
ui->buttonBox->setStandardButtons(QDialogButtonBox::Close | QDialogButtonBox::Ignore);
else
ui->buttonBox->setStandardButtons(QDialogButtonBox::Close);
}
+1 -1
View File
@@ -1,6 +1,6 @@
#include "lc_global.h"
#include "lc_application.h"
#include "lc_qupdatedialog.h"
#include "lc_updatedialog.h"
#include "lc_profile.h"
#include "pieceinf.h"
#include <QApplication>
+10 -10
View File
@@ -8073,49 +8073,49 @@ GL_EXT_texture_filter_anisotropic rozšíření: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Aktualizace LeoCADu</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>Připojuji se k aktualizačnímu serveru ...</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;K dispozici je novější verze LeoCADu ke stažení (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Používáte nejnovější verzi LeoCADu.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;K dispozici jsou nové aktualizace.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;Momentálně nejsou k dispozici žádné nové aktualizace.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation>&lt;p&gt;Navštivte &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; pro stažení.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Při analýze informací o aktualizaci došlo k chybě.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Při připojování k aktualizačnímu serveru došlo k chybě.</translation>
</message>
+10 -10
View File
@@ -7963,49 +7963,49 @@ Anisotropic: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Aktualisierungen für LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>Verbinde zum Server für Aktualisierungen</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Es ist einen neue Version von LeoCAD zum herunterladen verfügbar (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Sie benutzen die aktuelle Version von LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;Es sind neue Teile verfügbar.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;Im Moment gibt es keine neuen Teile.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation>&lt;p&gt;Besuchen sie &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; zum downloaden.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Fehler bei der Analyse der Aktualisierungsinformation.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Fehler bein Verbinden mit dem Aktualisierungsserver.</translation>
</message>
+10 -10
View File
@@ -8106,49 +8106,49 @@ Anisotropic: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Actualizaciones de LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>Conectando con el servidor de actualizaciones...</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Hay una nueva versión de LeoCAD disponible para descargar (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Estás utilizando la última versión de LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;No hay nuevas piezas disponibles.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;No hay nuevas piezas disponibles en este momento.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation>&lt;p&gt;Visita &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; para descargar.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Error parseando la información de la actualización.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Error conectando al servidor de actualizaciones.</translation>
</message>
+10 -10
View File
@@ -7837,49 +7837,49 @@ Anisotropic: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Mises à jour LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>Connexion au serveur de mise à jour</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Il y a une nouvelle version de LeoCAD disponible au téléchargement (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Vous utilisez la dernière version de LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;Il y a de nouvelle pièces disponibles.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;Il ny a pas de nouvelle pièces disponibles en ce moment.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Erreur à la lecture des informations de mise à jour.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Erreur à la connexion au serveur de mise à jour.</translation>
</message>
+10 -10
View File
@@ -7833,49 +7833,49 @@ Anisotropic: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Actualizações do LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>A ligar ao servidor de actualizações...</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Existe uma nova versão do LeoCAD em descarregamento (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Tem a última versão do LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;Existem novas peças disponiveis.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;Não novas peças disponiveis.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Erro ao ler a informação de actualização.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Erro ao ligar ao servidor de actualizações.</translation>
</message>
+10 -10
View File
@@ -7975,49 +7975,49 @@ GL_EXT_texture_filter_anisotropic extension: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Обновления LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>Соединение с сервером обновления</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Доступна новая версия LeoCAD для загрузки (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Используется последняя версия LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;Доступны новые детали.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;В данный момент новые детали недоступны.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation>&lt;p&gt;Посетите &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; для загрузки.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Ошибка обработки информации по обновлению.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Ошибка соединения с сервером обновления.</translation>
</message>
+10 -10
View File
@@ -7899,49 +7899,49 @@ GL_EXT_texture_filter_anisotropic extension: %5
</message>
</context>
<context>
<name>lcQUpdateDialog</name>
<name>lcUpdateDialog</name>
<message>
<location filename="../qt/lc_qupdatedialog.ui" line="14"/>
<location filename="../common/lc_updatedialog.ui" line="14"/>
<source>LeoCAD Updates</source>
<translation>Оновлення LeoCAD</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="37"/>
<location filename="../common/lc_updatedialog.cpp" line="37"/>
<source>Connecting to update server...</source>
<translation>З&apos;єднання з сервером оновлень...</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="108"/>
<location filename="../common/lc_updatedialog.cpp" line="108"/>
<source>&lt;p&gt;There&apos;s a newer version of LeoCAD available for download (%1.%2.%3).&lt;/p&gt;</source>
<translation>&lt;p&gt;Доступна нова версія LeoCAD для завантаження (%1.%2.%3).&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="110"/>
<location filename="../common/lc_updatedialog.cpp" line="110"/>
<source>&lt;p&gt;You are using the latest LeoCAD version.&lt;/p&gt;</source>
<translation>&lt;p&gt;Ви використовуєте найновішу версію LeoCAD.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="118"/>
<location filename="../common/lc_updatedialog.cpp" line="118"/>
<source>&lt;p&gt;There are new parts available.&lt;/p&gt;</source>
<translation>&lt;p&gt;Виявлено нові доступні блоки.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="122"/>
<location filename="../common/lc_updatedialog.cpp" line="122"/>
<source>&lt;p&gt;There are no new parts available at this time.&lt;/p&gt;</source>
<translation>&lt;p&gt;Наразі немає нових доступних блоків.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="127"/>
<location filename="../common/lc_updatedialog.cpp" line="127"/>
<source>&lt;p&gt;Visit &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; to download.&lt;/p&gt;</source>
<translation>&lt;p&gt;Відвідайте &lt;a href=&quot;https://github.com/leozide/leocad/releases&quot;&gt;https://github.com/leozide/leocad/releases&lt;/a&gt; для завантаження.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="133"/>
<location filename="../common/lc_updatedialog.cpp" line="133"/>
<source>Error parsing update information.</source>
<translation>Помилка розбору інформації оновлення.</translation>
</message>
<message>
<location filename="../qt/lc_qupdatedialog.cpp" line="138"/>
<location filename="../common/lc_updatedialog.cpp" line="138"/>
<source>Error connecting to the update server.</source>
<translation>Помилка з&apos;єднання з сервером оновлень.</translation>
</message>