From 7e56c5a9c6f526f20654875242df71e2d47ba3ee Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 22 Apr 2015 11:10:14 +0200 Subject: [PATCH] Added translation fix missing from #1001 --- cockatrice/src/gamesmodel.cpp | 2 +- cockatrice/translations/cockatrice_en.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/gamesmodel.cpp b/cockatrice/src/gamesmodel.cpp index 94610647..d88fafbe 100644 --- a/cockatrice/src/gamesmodel.cpp +++ b/cockatrice/src/gamesmodel.cpp @@ -18,7 +18,7 @@ const QString GamesModel::getGameCreatedString(const int secs) const { else if (secs < SECS_PER_MIN * 5) ret = tr("<5m ago"); else if (secs < SECS_PER_HOUR) - ret = QString::number(secs / SECS_PER_MIN).append(tr("m ago")); + ret = tr("%1m ago").arg(QString::number(secs / SECS_PER_MIN)); else if (secs < SECS_PER_MIN * 90) { ret = tr("1hr %1m ago").arg(QString::number((secs / SECS_PER_MIN) - 60)); } else if (secs < SECS_PER_HOUR * 4) { diff --git a/cockatrice/translations/cockatrice_en.ts b/cockatrice/translations/cockatrice_en.ts index 020c3753..8733bee3 100644 --- a/cockatrice/translations/cockatrice_en.ts +++ b/cockatrice/translations/cockatrice_en.ts @@ -1297,7 +1297,7 @@ Would you like to change your database location setting? - m ago + %1m ago