[Pkg-owncloud-commits] [owncloud-client] 179/470: Fix plural translation handling, remove the superflous arg()

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:00 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 0e1b9a346d54e81d5008d0a74c2fb28f6e05dbcd
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 b535386..6fca882 100644
--- a/src/libsync/utility.cpp
+++ b/src/libsync/utility.cpp
@@ -442,7 +442,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 ) {
@@ -450,7 +450,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 ) {
@@ -460,7 +460,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