[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: extragear/multimedia/amarok/src/mediadevice/njb
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2006-06-23 8:06:58
Message-ID: 1151050018.923099.9084.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 554113 by bram:
One more plural fix.
CCMAIL:kde-i18n-doc@kde.org
M +16 -16 njbmediadevice.cpp
--- trunk/extragear/multimedia/amarok/src/mediadevice/njb/njbmediadevice.cpp \
#554112:554113 @@ -131,7 +131,7 @@
NJB_Close( m_njb);
m_njb = 0;
-
+
}
debug()<< "Disconnected NJB device" << endl;
@@ -210,29 +210,29 @@
{
DEBUG_BLOCK
-
+
if( m_njb )
return true;
-
+
QString genericError = i18n( "Could not connect to Nomad device" );
int n;
if( NJB_Discover( njbs, 0, &n) == -1 || n == 0) {
amaroK::StatusBar::instance()->shortLongMessage( genericError, i18n("A \
suitable Nomad device could not be found"), KDE::StatusBar::Error ); debug() << ": \
no NJBs found\n";
-
+
return false;
}
m_njb = &njbs[0];
-
+
if( NJB_Open( m_njb ) == -1) {
amaroK::StatusBar::instance()->shortLongMessage( genericError, i18n("Nomad \
device could not be opened"), KDE::StatusBar::Error );
-
+
return false;
}
-
+
m_connected = true;
if( NJB_Capture(m_njb) == -1) {
@@ -245,8 +245,8 @@
if( m_connected )
{
readJukeboxMusic();
- QString s = i18n( "%1 tracks found on device",
- "%1 tracks found on device", trackList.size() ).arg( \
trackList.size() ); + QString s = i18n( "1 tracks found on device",
+ "%n tracks found on device", trackList.size() ).arg( \
trackList.size() ); amaroK::StatusBar::instance()->shortMessage( s );
}
@@ -279,7 +279,7 @@
{
return -1;
}
-
+
MediaItem *next = 0;
switch( item->type() )
{
@@ -296,7 +296,7 @@
case MediaItem::ALBUM:
case MediaItem::ARTIST:
// Recurse through the lists, slashing and burning.
-
+
if( isCancelled() )
break;
@@ -309,7 +309,7 @@
result += res;
else
result = -1;
-
+
}
if(item)
delete dynamic_cast<MediaItem *>(item);
@@ -364,7 +364,7 @@
destDir.adjustPath( 1 ); //add trailing slash
QDir dir;
QString path;
-
+
QPtrList<MediaItem> items;
m_view->getSelectedLeaves( 0, &items );
int result = 0;
@@ -422,7 +422,7 @@
result ++;
break;
default:
- break;
+ break;
}
}
return result;
@@ -438,7 +438,7 @@
NjbMediaDevice::downloadToCollection()
{
// We will first download all files into a temp dir, and then call move to \
collection.
-
+
QPtrList<MediaItem> items;
m_view->getSelectedLeaves( 0, &items );
@@ -702,8 +702,8 @@
menu.insertSeparator();
//menu.insertItem( SmallIconSet( amaroK::icon( "edit" ) ), i18n( "Rename" ), \
RENAME );
menu.insertItem( SmallIconSet( amaroK::icon( "remove" ) ), i18n( "Delete \
from device" ), DELETE );
-
+
int id = menu.exec( point );
switch( id )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic