summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-06-21 20:53:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 10:38:54 +0900
commitb8347d2387bda0707e63a936bd8f16105b826ecc (patch)
tree1aca52a7c1ffb02c92c9913d0cfef75e5a04583c /profile-widget/profilewidget2.cpp
parent28490d5dd0e9008ea36c571b182d5c5164583009 (diff)
downloadsubsurface-b8347d2387bda0707e63a936bd8f16105b826ecc.tar.gz
Translate the strings "planned dive" and "manually added dive" in the profile
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp6
1 files changed, 5 insertions, 1 deletions
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) {