mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
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:
parent
04179eb237
commit
f682ea0085
1 changed files with 3 additions and 3 deletions
|
@ -1069,12 +1069,12 @@ QString get_trip_date_string(timestamp_t when, int nr, bool getday)
|
||||||
|
|
||||||
if (nr != 1) {
|
if (nr != 1) {
|
||||||
if (getday) {
|
if (getday) {
|
||||||
ret = localTime.date().toString(dateFormat).append(" (%1 dives)").arg(nr);
|
ret = localTime.date().toString(dateFormat) + " " + QObject::tr("(%1 dives)").arg(nr);
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
ret = localTime.date().toString(dateFormat).append(" (1 dive)");
|
ret = localTime.date().toString(dateFormat) + " " + QObject::tr("(1 dive)");
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue