[Pkg-owncloud-commits] [owncloud-client] 188/470: Fix plural translation handling, remove the superflous arg()
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:25:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit f587f35ef09b1985a96fe5a14eba1207d7d6961a
Author: Klaas Freitag <freitag at owncloud.com>
Date: Fri Mar 18 15:28:00 2016 +0100
Fix plural translation handling, remove the superflous arg()
---
src/libsync/utility.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libsync/utility.cpp b/src/libsync/utility.cpp
index bb3f563..b0325f5 100644
--- a/src/libsync/utility.cpp
+++ b/src/libsync/utility.cpp
@@ -444,7 +444,7 @@ QString Utility::timeAgoInWords(const QDateTime& dt, const QDateTime& from)
if( dt.daysTo(now)>0 ) {
int dtn = dt.daysTo(now);
- return QObject::tr("%n day(s) ago", "", dtn).arg(dtn);
+ return QObject::tr("%n day(s) ago", "", dtn);
} else {
qint64 secs = dt.secsTo(now);
if( secs < 0 ) {
@@ -452,7 +452,7 @@ QString Utility::timeAgoInWords(const QDateTime& dt, const QDateTime& from)
}
if( floor(secs / 3600.0) > 0 ) {
int hours = floor(secs/3600.0);
- return( QObject::tr("%n hour(s) ago", "", hours).arg(hours));
+ return( QObject::tr("%n hour(s) ago", "", hours) );
} else {
int minutes = qRound(secs/60.0);
if( minutes == 0 ) {
@@ -462,7 +462,7 @@ QString Utility::timeAgoInWords(const QDateTime& dt, const QDateTime& from)
return QObject::tr("Less than a minute ago");
}
}
- return( QObject::tr("%n minute(s) ago", "", minutes).arg(minutes));
+ return( QObject::tr("%n minute(s) ago", "", minutes) );
}
}
return QObject::tr("Some time ago");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list