[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/dialogs
From: William Viana Soares <vianasw () gmail ! com>
Date: 2008-07-10 8:34:59
Message-ID: 1215678899.481385.9953.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 830366 by wviana:
Minor fixing.
M +2 -4 Statistics.h
--- trunk/extragear/multimedia/amarok/src/dialogs/Statistics.h #830365:830366
@@ -136,7 +136,7 @@
}
if( datediff >= 7 ) // return difference in weeks
- return i18np( "One week ago", "%1W", (datediff+3)/7 );
+ return i18np( "One week ago", "%1w", (datediff+3)/7 );
if( datediff == -1 )
return i18nc( "When this track was last played", "Tomorrow" );
@@ -144,9 +144,7 @@
const int timediff = datetime.secsTo( now );
if( timediff >= 24*60*60 /*24 hours*/ ) // return difference in days
- return datediff == 1 ?
- i18n( "Yesterday" ) :
- i18np( "One day ago", "%1d", (timediff+12*60*60)/(24*60*60) );
+ return i18np( "One day ago", "%1d", (timediff+12*60*60)/(24*60*60) );
if( timediff >= 90*60 /*90 minutes*/ ) // return difference in hours
return i18np( "One hour ago", "%1h", (timediff+30*60)/(60*60) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic