diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2015-10-20 14:18:27 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-23 22:47:52 +0900 |
commit | f682ea00855cc2b52cefeeaf463f5d4ffbd4b33e (patch) | |
tree | 7e1acbb9053b5c91f4f16835254f99faa8388893 | |
parent | 04179eb23735a842bfaf56ecb0aab3b174f5f541 (diff) | |
download | subsurface-f682ea00855cc2b52cefeeaf463f5d4ffbd4b33e.tar.gz |
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>
-rw-r--r-- | qthelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index db0649b39..7e4d64ec8 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -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; |