mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
5d92e2898c
commit
e830cb421a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue