summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_osx.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_osx.mm')
-rw-r--r--src/bluetooth/qlowenergycontroller_osx.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bluetooth/qlowenergycontroller_osx.mm b/src/bluetooth/qlowenergycontroller_osx.mm
index 6be8dd67..80a94d64 100644
--- a/src/bluetooth/qlowenergycontroller_osx.mm
+++ b/src/bluetooth/qlowenergycontroller_osx.mm
@@ -33,6 +33,7 @@
****************************************************************************/
#include "osx/osxbtutility_p.h"
+#include "osx/uistrings_p.h"
#include "qlowenergyserviceprivate_p.h"
#include "qlowenergycontroller_osx_p.h"
@@ -694,17 +695,17 @@ void QLowEnergyControllerPrivateOSX::setErrorDescription(QLowEnergyController::E
errorString.clear();
break;
case QLowEnergyController::UnknownRemoteDeviceError:
- errorString = QLowEnergyController::tr("Remote device cannot be found");
+ errorString = QCoreApplication::translate(LE_CONTROLLER, LEC_RDEV_NO_FOUND);
break;
case QLowEnergyController::InvalidBluetoothAdapterError:
- errorString = QLowEnergyController::tr("Cannot find local adapter");
+ errorString = QCoreApplication::translate(LE_CONTROLLER, LEC_NO_LOCAL_DEV);
break;
case QLowEnergyController::NetworkError:
- errorString = QLowEnergyController::tr("Error occurred during connection I/O");
+ errorString = QCoreApplication::translate(LE_CONTROLLER, LEC_IO_ERROR);
break;
case QLowEnergyController::UnknownError:
default:
- errorString = QLowEnergyController::tr("Unknown Error");
+ errorString = QCoreApplication::translate(LE_CONTROLLER, LEC_UNKNOWN_ERROR);
break;
}
}