summaryrefslogtreecommitdiff
path: root/src/libs/zeroconf/avahiLib.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-12-13 16:17:43 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-12-13 16:20:26 +0100
commit948c7af9f202cac2fc02679172acb069ca61bfcd (patch)
tree16b46e6bcc51ee8b3ed7f017d967f8d33671aae5 /src/libs/zeroconf/avahiLib.cpp
parent0d08db21891e5b647c108a2ad8e955e13f84ceaf (diff)
downloadqt-creator-948c7af9f202cac2fc02679172acb069ca61bfcd.tar.gz
tr()-Fixes.
- Capitalization - Fix lupdate warnings about tr() Usage in ZeroConf - Fix some messages. Change-Id: I95e4095ce54040e30d9a7968407bfc99b76643ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/libs/zeroconf/avahiLib.cpp')
-rw-r--r--src/libs/zeroconf/avahiLib.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/libs/zeroconf/avahiLib.cpp b/src/libs/zeroconf/avahiLib.cpp
index 5177db352e..bdb5469eed 100644
--- a/src/libs/zeroconf/avahiLib.cpp
+++ b/src/libs/zeroconf/avahiLib.cpp
@@ -129,7 +129,8 @@ public:
#ifndef ZCONF_AVAHI_STATIC_LINKING
// dynamic linking
if (!nativeLib.load()) {
- setError(true, tr("AvahiZConfLib could not load native library"));
+ setError(true,
+ ZConfLib::tr("AvahiZConfLib could not load the native library '%1': %2").arg(libName, nativeLib.errorString()));
}
m_simplePollGet = reinterpret_cast<AvahiSimplePollGet>(nativeLib.resolve("avahi_simple_poll_get"));
m_simplePollNew = reinterpret_cast<AvahiSimplePollNewPtr>(nativeLib.resolve("avahi_simple_poll_new"));
@@ -316,7 +317,7 @@ public:
if (m_simplePollFree)
m_simplePollFree(connection->simple_poll);
delete connection;
- setError(true, tr("%1 could not create a client (probably the daemon is not running)"));
+ setError(true, ZConfLib::tr("%1 could not create a client (probably the daemon is not running)").arg(name()));
return kDNSServiceErr_Unknown;
}
*sdRef = reinterpret_cast<ConnectionRef>(connection);
@@ -440,16 +441,16 @@ extern "C" void cAvahiClientReply (AvahiClient * /*s*/, AvahiClientState state,
break;
case (AVAHI_CLIENT_S_COLLISION):
/* Server state: COLLISION */
- lib->setError(true, lib->tr("cAvahiClient, server collision"));
+ lib->setError(true, ZConfLib::tr("cAvahiClient, server collision"));
break;
case (AVAHI_CLIENT_FAILURE):
- lib->setError(true, lib->tr("cAvahiClient, some kind of error happened on the client side"));
+ lib->setError(true, ZConfLib::tr("cAvahiClient, some kind of error happened on the client side"));
break;
case (AVAHI_CLIENT_CONNECTING):
- lib->setError(false, lib->tr("cAvahiClient, still connecting, no server available"));
+ lib->setError(false, ZConfLib::tr("cAvahiClient, still connecting, no server available"));
break;
default:
- lib->setError(true, lib->tr("Error: unexpected state %1 in cAvahiClientReply, ignoring it")
+ lib->setError(true, ZConfLib::tr("Error: unexpected state %1 in cAvahiClientReply, ignoring it")
.arg(state));
}
}
@@ -484,7 +485,7 @@ extern "C" void cAvahiBrowseReply(
browser->updateFlowStatusForFlags(0);
break;
default:
- browser->mainConnection->lib->setError(true, browser->mainConnection->lib->tr(
+ browser->mainConnection->lib->setError(true, ZConfLib::tr(
"Error: unexpected state %1 in cAvahiBrowseReply, ignoring it")
.arg(event));
}