diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-03-03 14:34:31 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-03-05 16:19:49 +0100 |
commit | 1723db9d0b0f4d02f4497c98b48a06dd4a0ce5c5 (patch) | |
tree | d6952e65084fabf252e0b62d754b4eddcb231655 | |
parent | eb08ec972dc134d3f926e14fda024f9405e71692 (diff) | |
download | subsurface-1723db9d0b0f4d02f4497c98b48a06dd4a0ce5c5.tar.gz |
Configure DC dialog: Add a few missing translations
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-rw-r--r-- | core/configuredivecomputerthreads.cpp | 6 | ||||
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp index ac4752c5a..0d9a553e8 100644 --- a/core/configuredivecomputerthreads.cpp +++ b/core/configuredivecomputerthreads.cpp @@ -2133,7 +2133,7 @@ void ReadSettingsThread::run() } else if (rc == DC_STATUS_UNSUPPORTED) { emit error(tr("This feature is not yet available for the selected dive computer.")); } else { - emit error("Failed!"); + emit error(tr("Failed!")); } break; #if DC_VERSION_CHECK(0, 5, 0) @@ -2142,7 +2142,7 @@ void ReadSettingsThread::run() if (rc == DC_STATUS_SUCCESS) emit devicedetails(m_deviceDetails); else - emit error("Failed!"); + emit error(tr("Failed!")); break; #endif // divecomputer 0.5.0 #ifdef DEBUG_OSTC @@ -2153,7 +2153,7 @@ void ReadSettingsThread::run() if (rc == DC_STATUS_SUCCESS) emit devicedetails(m_deviceDetails); else - emit error("Failed!"); + emit error(tr("Failed!")); break; default: emit error(tr("This feature is not yet available for the selected dive computer.")); diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index 138f9763a..c3fc6c940 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -899,7 +899,7 @@ void ConfigureDiveComputerDialog::configMessage(QString msg) void ConfigureDiveComputerDialog::configError(QString err) { - ui.progressBar->setFormat("Error: " + err); + ui.progressBar->setFormat(tr("Error") + ": " + err); } void ConfigureDiveComputerDialog::getDeviceData() @@ -1501,7 +1501,7 @@ void ConfigureDiveComputerDialog::bluetoothSelectionDialogIsFinished(int result) ui.device->setCurrentText(btDeviceSelectionDialog->getSelectedDeviceText()); device_data.bluetooth_mode = true; - ui.progressBar->setFormat("Connecting to device..."); + ui.progressBar->setFormat(tr("Connecting to device...")); dc_open(); } } @@ -1528,7 +1528,7 @@ void ConfigureDiveComputerDialog::dc_open() ui.logToFile->setEnabled(false); if (fw_upgrade_possible) ui.updateFirmwareButton->setEnabled(true); - ui.progressBar->setFormat("Connected to device"); + ui.progressBar->setFormat(tr("Connected to device")); } void ConfigureDiveComputerDialog::dc_close() @@ -1548,6 +1548,6 @@ void ConfigureDiveComputerDialog::dc_close() ui.DiveComputerList->setEnabled(true); ui.logToFile->setEnabled(true); ui.updateFirmwareButton->setEnabled(false); - ui.progressBar->setFormat("Disconnected from device"); + ui.progressBar->setFormat(tr("Disconnected from device")); ui.progressBar->setValue(0); } |