mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Translate dc text in profile also if string has suffix for > 1 DC
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
e4a9787c5e
commit
022b3e450b
1 changed files with 5 additions and 5 deletions
|
@ -769,17 +769,17 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
||||||
event->setVisible(!event->shouldBeHidden());
|
event->setVisible(!event->shouldBeHidden());
|
||||||
}
|
}
|
||||||
QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid);
|
QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid);
|
||||||
#ifndef SUBSURFACE_MOBILE
|
|
||||||
int nr;
|
|
||||||
if ((nr = number_of_computers(&displayed_dive)) > 1)
|
|
||||||
dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr);
|
|
||||||
#endif
|
|
||||||
if (dcText == "planned dive")
|
if (dcText == "planned dive")
|
||||||
dcText = tr("Planned dive");
|
dcText = tr("Planned dive");
|
||||||
else if (dcText == "manually added dive")
|
else if (dcText == "manually added dive")
|
||||||
dcText = tr("Manually added dive");
|
dcText = tr("Manually added dive");
|
||||||
else if (dcText.isEmpty())
|
else if (dcText.isEmpty())
|
||||||
dcText = tr("Unknown dive computer");
|
dcText = tr("Unknown dive computer");
|
||||||
|
#ifndef SUBSURFACE_MOBILE
|
||||||
|
int nr;
|
||||||
|
if ((nr = number_of_computers(&displayed_dive)) > 1)
|
||||||
|
dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr);
|
||||||
|
#endif
|
||||||
diveComputerText->setText(dcText);
|
diveComputerText->setText(dcText);
|
||||||
if (haveFilesOnCommandLine() && animSpeedBackup != 0) {
|
if (haveFilesOnCommandLine() && animSpeedBackup != 0) {
|
||||||
prefs.animation_speed = animSpeedBackup;
|
prefs.animation_speed = animSpeedBackup;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue