diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2023-03-13 20:31:19 +0000 |
---|---|---|
committer | Emanoil Kotsev <deloptes@gmail.com> | 2023-03-20 07:25:45 +0000 |
commit | c95a42982628b4b06ceed0c01cada10806c9b53c (patch) | |
tree | ee5bb82e46741f57362bb5c4a0f2133d1d525cdb /src/libtdeobex | |
parent | 66c9d2a5920b30474b595603a79915d2be38cdbe (diff) | |
download | tdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.tar.gz tdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.zip |
i18n and some minor corrections
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Diffstat (limited to 'src/libtdeobex')
-rw-r--r-- | src/libtdeobex/obexobjectmanagerImpl.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libtdeobex/obexobjectmanagerImpl.cpp b/src/libtdeobex/obexobjectmanagerImpl.cpp index 56a8798..50c59fe 100644 --- a/src/libtdeobex/obexobjectmanagerImpl.cpp +++ b/src/libtdeobex/obexobjectmanagerImpl.cpp @@ -136,10 +136,10 @@ bool ObexObjectManagerImpl::initDBUS() setConnection(dBusConn); TQT_DBusDataMap<TQT_DBusObjectPath> objects; - TQT_DBusError error; - if (!GetManagedObjects(objects, error)) + TQT_DBusError dbuserror; + if (!GetManagedObjects(objects, dbuserror)) { - tqDebug("GetManagedObjects(objects,error) FAILED\n"); + tqDebug(i18n("GetManagedObjects(objects, dbuserror) failed: %1").arg(dbuserror.message())); return false; } @@ -150,7 +150,7 @@ bool ObexObjectManagerImpl::initDBUS() TQT_DBusDataMap<TQString> tqMap1 = it.data().toStringKeyMap(&ok); if (!ok) { - tqWarning("Failed to convert dbus data to string map: %s", it.key().latin1()); + tqWarning(i18n("Failed to convert dbus data to string map: %1").arg(it.key())); return false; } slotInterfacesAdded(it.key(), tqMap1); @@ -198,7 +198,7 @@ void ObexObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object } else { - tqDebug("org.bluez.obex.AgentManager1 initialization failed\n"); + tqDebug(i18n("org.bluez.obex.AgentManager1 initialization failed")); } } else if (interface == "org.bluez.obex.Client1") @@ -210,7 +210,7 @@ void ObexObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object } else { - tqDebug("org.bluez.obex.Client1 initialization failed\n"); + tqDebug(i18n("org.bluez.obex.Client1 initialization failed")); } } else if (interface == "org.bluez.obex.Session1") @@ -222,7 +222,7 @@ void ObexObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object } else { - tqDebug("org.bluez.obex.Session1 initialization failed\n"); + tqDebug(i18n("org.bluez.obex.Session1 initialization failed")); } } else if (interface == "org.bluez.obex.FileTransfer1") @@ -234,7 +234,7 @@ void ObexObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object } else { - tqDebug("org.bluez.obex.FileTransfer1 initialization failed\n"); + tqDebug(i18n("org.bluez.obex.FileTransfer1 initialization failed")); } } else if (interface == "org.freedesktop.DBus.Introspectable") @@ -243,7 +243,7 @@ void ObexObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object } else { - tqWarning("Interface not implemented: %s", interface.local8Bit().data()); + tqWarning(i18n("Interface not implemented: %1").arg(interface)); } } } @@ -273,7 +273,7 @@ void ObexObjectManagerImpl::slotInterfacesRemoved(const TQT_DBusObjectPath& obje } else { - tqWarning("Interface not implemented: %s", (*it).local8Bit().data()); + tqWarning(i18n("Interface not implemented: %1").arg((*it))); } } } |