From e830cb421aec3eb1bafd137288a9f6266bb06b2c Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Sat, 5 Sep 2015 11:01:17 +0200 Subject: Add ON and OFF strings to translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Dirk Hohndel --- qt-ui/btdeviceselectiondialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-ui/btdeviceselectiondialog.cpp') 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 -- cgit v1.2.3-70-g09d2