diff options
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveStatistics.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp index ec7b16f22..e05f076a9 100644 --- a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp +++ b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp @@ -120,12 +120,16 @@ void TabDiveStatistics::updateData() */ if (he_tot.mliter || o2_tot.mliter) { gasUsedString.append(tr("These gases could be\nmixed from Air and using:\n")); - if (he_tot.mliter) - gasUsedString.append(QString("He: %1").arg(get_volume_string(he_tot, true))); + if (he_tot.mliter) { + gasUsedString.append(tr("He")); + gasUsedString.append(QString(": %1").arg(get_volume_string(he_tot, true))); + } if (he_tot.mliter && o2_tot.mliter) - gasUsedString.append(tr(" and ")); - if (o2_tot.mliter) - gasUsedString.append(QString("O2: %2\n").arg(get_volume_string(o2_tot, true))); + gasUsedString.append(" ").append(tr("and")).append(" "); + if (o2_tot.mliter) { + gasUsedString.append(tr("O₂")); + gasUsedString.append(QString(": %2\n").arg(get_volume_string(o2_tot, true))); + } } ui->gasConsumption->setText(gasUsedString); } |