mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix an error around translation of dive modes in the UI
This fixes an mistake introduced in
3d1072f886
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
4ccc4d7329
commit
0bc9edf855
8 changed files with 14 additions and 14 deletions
|
@ -194,7 +194,7 @@ void DiveEventItem::setupToolTipString(struct gasmix *lastgasmix)
|
|||
}
|
||||
*lastgasmix = *mix;
|
||||
} else if (same_string(internalEvent->name, "modechange")) {
|
||||
name += QString(": %1").arg(divemode_text_ui[internalEvent->value]);
|
||||
name += QString(": %1").arg(tr(divemode_text_ui[internalEvent->value]));
|
||||
} else if (value) {
|
||||
if (type == SAMPLE_EVENT_PO2 && same_string(internalEvent->name, "SP change")) {
|
||||
name += QString(": %1bar").arg((double)value / 1000, 0, 'f', 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue