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>
This commit is contained in:
Salvador Cuñat 2015-09-05 11:01:17 +02:00 committed by Dirk Hohndel
parent 5d92e2898c
commit e830cb421a

View file

@ -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