[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [amarok] src/core-impl/collections/umscollection: Fix translatable
From: Bart Cerneels <bart.cerneels () kde ! org>
Date: 2011-11-16 8:54:56
Message-ID: 20111116085456.CAACAA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 39bcf1886f091e99f0bbaffca7c5737c5da8a687 by Bart Cerneels.
Committed on 16/11/2011 at 09:52.
Pushed by shanachie into branch 'master'.
Fix translatable plural string.
CCMAIL:kde-i18n-doc@kde.org
M +9 -5 src/core-impl/collections/umscollection/UmsCollectionLocation.cpp
http://commits.kde.org/amarok/39bcf1886f091e99f0bbaffca7c5737c5da8a687
diff --git a/src/core-impl/collections/umscollection/UmsCollectionLocation.cpp \
b/src/core-impl/collections/umscollection/UmsCollectionLocation.cpp index \
af76da9..395d272 100644
--- a/src/core-impl/collections/umscollection/UmsCollectionLocation.cpp
+++ b/src/core-impl/collections/umscollection/UmsCollectionLocation.cpp
@@ -103,8 +103,9 @@ UmsCollectionLocation::copyUrlsToCollection( const \
QMap<Meta::TrackPtr, KUrl> &s
//TODO: disable scanning until we are done with copying
- QString loggerText = i18n( "Copying %1 tracks to %2" ).arg( sources.count() )
- .arg( \
m_umsCollection->prettyName() ); + QString loggerText = i18np( "Copying one track \
to %2", "Copying %1 tracks to %2" ) + .arg( \
sources.count() ) + .arg( \
m_umsCollection->prettyName() ); UmsTransferJob *transferJob = new UmsTransferJob( \
this ); QMapIterator<Meta::TrackPtr, KUrl> i( sources );
while( i.hasNext() )
@@ -140,8 +141,10 @@ UmsCollectionLocation::removeUrlsFromCollection( const \
Meta::TrackList &sources foreach( const Meta::TrackPtr track, sources )
sourceUrls << track->playableUrl();
- QString loggerText = i18n( "Removing %1 tracks from %2" ).arg( \
sourceUrls.count() )
- .arg( \
m_umsCollection->prettyName() ); + QString loggerText = i18np( "Removing one track \
from %2", + "Removing %1 tracks from %2" )
+ .arg( sourceUrls.count() )
+ .arg( m_umsCollection->prettyName() );
KIO::DeleteJob *delJob = KIO::del( sourceUrls, KIO::HideProgressInfo );
//TODO: make cancelable.
Amarok::Components::logger()->newProgressOperation( delJob, loggerText );
@@ -194,7 +197,8 @@ UmsTransferJob::startNextJob()
KIO::HideProgressInfo );
connect( job, SIGNAL(percent( KJob *, unsigned long )),
SLOT(slotChildJobPercent( KJob *, unsigned long )) );
- QString loggerText = i18n( "Copying %1 tracks to %2" ).arg( \
m_transferList.count() ) + QString loggerText = i18n( "Copying one track to %2", \
"Copying %1 tracks to %2" ) + .arg( \
m_transferList.count() )
.arg( m_location->umsCollection()->prettyName() );
emit infoMessage( this, loggerText, loggerText );
addSubjob( job );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic