Fix broken translation in divelist
Fixes a broken translation in the divelist introduced in commit 45b1d0d73db6e21. 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:
parent
04179eb237
commit
f682ea0085
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user