Fix broken translation in divelist

Fixes a broken translation in the divelist introduced in commit 45b1d0d73d.
Now, the (.. dives) string on a trip line in de divelist is translated (again).

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Jan Mulder 2015-10-20 14:18:27 +02:00 committed by Dirk Hohndel
parent 04179eb237
commit f682ea0085

View file

@ -1069,12 +1069,12 @@ QString get_trip_date_string(timestamp_t when, int nr, bool getday)
if (nr != 1) {
if (getday) {
ret = localTime.date().toString(dateFormat).append(" (%1 dives)").arg(nr);
ret = localTime.date().toString(dateFormat) + " " + QObject::tr("(%1 dives)").arg(nr);
} else {
ret = localTime.date().toString("MMM yy").append(" (%1 dives)").arg(nr);
ret = localTime.date().toString("MMM yy") + " " + QObject::tr("(%1 dives)").arg(nr);
}
} else {
ret = localTime.date().toString(dateFormat).append(" (1 dive)");
ret = localTime.date().toString(dateFormat) + " " + QObject::tr("(1 dive)");
}
return ret;