From 0bc9edf855caf95e2d58ccaf704ceeda079e06f1 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sat, 16 Jun 2018 16:30:03 +0200 Subject: Fix an error around translation of dive modes in the UI This fixes an mistake introduced in 3d1072f8862e4c329dc2678df52a24137b8d4704 Signed-off-by: Stefan Fuchs --- profile-widget/diveeventitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/diveeventitem.cpp') diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index 9e868e0b3..45b9da363 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -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); -- cgit v1.2.3-70-g09d2