summaryrefslogtreecommitdiffstats
path: root/qt-ui/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-09-05 11:01:17 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-05 07:43:12 -0700
commite830cb421aec3eb1bafd137288a9f6266bb06b2c (patch)
tree5c1b4047d27c4fd020b607e77b353183761672c1 /qt-ui/btdeviceselectiondialog.cpp
parent5d92e2898c892bab51856fc7186405643e685333 (diff)
downloadsubsurface-e830cb421aec3eb1bafd137288a9f6266bb06b2c.tar.gz
Add ON and OFF strings to translation
In btdeviceselectiondialog.cpp ON and OFF strings need to be translatables to avoid issues in the translation of the resulting displayed string, as "turn on" and "turn off" translates to a single word in most languages. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/btdeviceselectiondialog.cpp')
-rw-r--r--qt-ui/btdeviceselectiondialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/btdeviceselectiondialog.cpp b/qt-ui/btdeviceselectiondialog.cpp
index 42045937d..dc5d70d8b 100644
--- a/qt-ui/btdeviceselectiondialog.cpp
+++ b/qt-ui/btdeviceselectiondialog.cpp
@@ -198,8 +198,9 @@ void BtDeviceSelectionDialog::hostModeStateChanged(QBluetoothLocalDevice::HostMo
#else
bool on = !(mode == QBluetoothLocalDevice::HostPoweredOff);
- ui->dialogStatus->setText(tr("The local Bluetooth device was turned %1.")
- .arg(on? "ON" : "OFF"));
+ //: %1 will be replaced with "turned on" or "turned off"
+ ui->dialogStatus->setText(tr("The local Bluetooth device was %1.")
+ .arg(on? tr("turned on") : tr("turned off")));
ui->deviceState->setChecked(on);
ui->scan->setEnabled(on);
#endif