mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:13:23 +00:00
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>
This commit is contained in:
parent
257f7c082d
commit
a784b15cb8
1 changed files with 9 additions and 5 deletions
|
@ -120,12 +120,16 @@ void TabDiveStatistics::updateData()
|
||||||
*/
|
*/
|
||||||
if (he_tot.mliter || o2_tot.mliter) {
|
if (he_tot.mliter || o2_tot.mliter) {
|
||||||
gasUsedString.append(tr("These gases could be\nmixed from Air and using:\n"));
|
gasUsedString.append(tr("These gases could be\nmixed from Air and using:\n"));
|
||||||
if (he_tot.mliter)
|
if (he_tot.mliter) {
|
||||||
gasUsedString.append(QString("He: %1").arg(get_volume_string(he_tot, true)));
|
gasUsedString.append(tr("He"));
|
||||||
|
gasUsedString.append(QString(": %1").arg(get_volume_string(he_tot, true)));
|
||||||
|
}
|
||||||
if (he_tot.mliter && o2_tot.mliter)
|
if (he_tot.mliter && o2_tot.mliter)
|
||||||
gasUsedString.append(tr(" and "));
|
gasUsedString.append(" ").append(tr("and")).append(" ");
|
||||||
if (o2_tot.mliter)
|
if (o2_tot.mliter) {
|
||||||
gasUsedString.append(QString("O2: %2\n").arg(get_volume_string(o2_tot, true)));
|
gasUsedString.append(tr("O₂"));
|
||||||
|
gasUsedString.append(QString(": %2\n").arg(get_volume_string(o2_tot, true)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ui->gasConsumption->setText(gasUsedString);
|
ui->gasConsumption->setText(gasUsedString);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue