From b8347d2387bda0707e63a936bd8f16105b826ecc Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Wed, 21 Jun 2017 20:53:47 +0200 Subject: Translate the strings "planned dive" and "manually added dive" in the profile Signed-off-by: Stefan Fuchs --- profile-widget/profilewidget2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 4efd53fed..90bf6dbb2 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -774,7 +774,11 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) if ((nr = number_of_computers(&displayed_dive)) > 1) dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); #endif - if (dcText.isEmpty()) + if (dcText == "planned dive") + dcText = tr("Planned dive"); + else if (dcText == "manually added dive") + dcText = tr("Manually added dive"); + else if (dcText.isEmpty()) dcText = tr("Unknown dive computer"); diveComputerText->setText(dcText); if (haveFilesOnCommandLine() && animSpeedBackup != 0) { -- cgit v1.2.3-70-g09d2