diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-04-27 21:47:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-01 21:24:02 -0700 |
commit | a784b15cb87b98b0c0a66e025760449941375747 (patch) | |
tree | 36beff157f5a7ca4f762c903ba117189bc3f00ef /desktop-widgets/tab-widgets | |
parent | 257f7c082de42855ea82f6f33c2e0765ad33587f (diff) | |
download | subsurface-a784b15cb87b98b0c0a66e025760449941375747.tar.gz |
Update translation and strings for gas usage in stats
Giving the string " and " to transiflex seems to fail and/or
it's highly possible that the translators make a mistake by
translating it into "and" or " and" or "and ".
Change the string to "and" and hard code the whitespaces before and after.
Change O2 to O₂ in statistics.
Translate "He" and "O2" in statistics.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-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); } |