Skip to content

Commit

Permalink
Translate the strings "planned dive" and "manually added dive" in the…
Browse files Browse the repository at this point in the history
… profile

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
  • Loading branch information
sfuchs79 authored and dirkhh committed Jun 22, 2017
1 parent 28490d5 commit b8347d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion profile-widget/profilewidget2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b8347d2

Please sign in to comment.