From a784b15cb87b98b0c0a66e025760449941375747 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Thu, 27 Apr 2017 21:47:51 +0200 Subject: Update translation and strings for gas usage in stats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- desktop-widgets/tab-widgets/TabDiveStatistics.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'desktop-widgets/tab-widgets') 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); } -- cgit v1.2.3-70-g09d2