mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Distinguish between user and internal divemode names
The former should be translated but not those that go to xml/git. ... and fix capitalization of pSCR. Suggested-by: Stefan Fuchs <sfuchs@gmx.de> Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
424efb7720
commit
7c6e5ed5db
7 changed files with 27 additions and 12 deletions
|
@ -194,7 +194,7 @@ void DiveEventItem::setupToolTipString(struct gasmix *lastgasmix)
|
|||
}
|
||||
*lastgasmix = *mix;
|
||||
} else if (same_string(internalEvent->name, "modechange")) {
|
||||
name += tr(": %1").arg(divemode_text[internalEvent->value]);
|
||||
name += tr(": %1").arg(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