aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-08 10:02:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-08 10:05:06 +0100
commiteccac1321f512d820ac25aa89f6f7cce50fdd6df (patch)
treed81048e8e10348e1b96a8d082fd56eb8940c1296 /qt-models
parentf24ab1dfa217e9035c055b0f912e5dcdb0dc941a (diff)
downloadsubsurface-eccac1321f512d820ac25aa89f6f7cce50fdd6df.tar.gz
Deal with weird transifex issue involving leading space
Apparently transifex drops the leading space in the translation string and then at runtime the string no longer matches. So let's just code this differently. This of course creates a new string but that new string should be the string that transifex already asks people to translate... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divetripmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index fcba4a570..819bb5463 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -62,9 +62,9 @@ QVariant TripItem::data(int column, int role) const
d = d->next;
}
if (countShown < trip->nrdives)
- shownText = tr(" (%1 shown)").arg(countShown);
+ shownText = tr("(%1 shown)").arg(countShown);
if (trip->location && *trip->location)
- ret = QString(trip->location) + ", " + get_trip_date_string(trip->when, trip->nrdives) + shownText;
+ ret = QString(trip->location) + ", " + get_trip_date_string(trip->when, trip->nrdives) + " " + shownText;
else
ret = get_trip_date_string(trip->when, trip->nrdives) + shownText;
break;