Update error message, translations and improve debug message

master
Simon Stürz 2021-06-28 09:56:02 +02:00
parent 0944fe422a
commit 9255528440
10 changed files with 11 additions and 11 deletions

View File

@ -47,11 +47,11 @@ void IntegrationPluginWakeOnLan::discoverThings(ThingDiscoveryInfo *info)
{
if (!hardwareManager()->networkDeviceDiscovery()->available()) {
qCWarning(dcWakeOnLan()) << "Failed to discover network devices. The network device discovery is not available.";
info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("The discovery is not available."));
info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("Unable to discovery devices in your network."));
return;
}
qCDebug(dcWakeOnLan()) << "Start discovering network devices...";
qCDebug(dcWakeOnLan()) << "Starting network discovery...";
NetworkDeviceDiscoveryReply *discoveryReply = hardwareManager()->networkDeviceDiscovery()->discover();
connect(discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
ThingDescriptors descriptors;

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>

View File

@ -5,7 +5,7 @@
<name>IntegrationPluginWakeOnLan</name>
<message>
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
<source>The discovery is not available.</source>
<source>Unable to discovery devices in your network.</source>
<translation type="unfinished"></translation>
</message>
</context>