Update error message, translations and improve debug message
parent
0944fe422a
commit
9255528440
|
|
@ -47,11 +47,11 @@ void IntegrationPluginWakeOnLan::discoverThings(ThingDiscoveryInfo *info)
|
||||||
{
|
{
|
||||||
if (!hardwareManager()->networkDeviceDiscovery()->available()) {
|
if (!hardwareManager()->networkDeviceDiscovery()->available()) {
|
||||||
qCWarning(dcWakeOnLan()) << "Failed to discover network devices. The network device discovery is not 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qCDebug(dcWakeOnLan()) << "Start discovering network devices...";
|
qCDebug(dcWakeOnLan()) << "Starting network discovery...";
|
||||||
NetworkDeviceDiscoveryReply *discoveryReply = hardwareManager()->networkDeviceDiscovery()->discover();
|
NetworkDeviceDiscoveryReply *discoveryReply = hardwareManager()->networkDeviceDiscovery()->discover();
|
||||||
connect(discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
|
connect(discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
|
||||||
ThingDescriptors descriptors;
|
ThingDescriptors descriptors;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<name>IntegrationPluginWakeOnLan</name>
|
<name>IntegrationPluginWakeOnLan</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../integrationpluginwakeonlan.cpp" line="50"/>
|
<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>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue