From eccac1321f512d820ac25aa89f6f7cce50fdd6df Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 8 Oct 2015 10:02:42 +0100 Subject: 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 --- qt-models/divetripmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') 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; -- cgit v1.2.3-70-g09d2