mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Be consistent with 'My Collection'.
This commit is contained in:
@@ -83,7 +83,7 @@ CollectionFlatModel::addCollection( const collection_ptr& collection, bool sendN
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( collection->source()->isLocal() )
|
if ( collection->source()->isLocal() )
|
||||||
setTitle( tr( "Your Collection" ) );
|
setTitle( tr( "My Collection" ) );
|
||||||
else
|
else
|
||||||
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
||||||
}
|
}
|
||||||
|
@@ -652,7 +652,7 @@ TreeModel::addCollection( const collection_ptr& collection )
|
|||||||
setIcon( collection->source()->avatar() );
|
setIcon( collection->source()->avatar() );
|
||||||
|
|
||||||
if ( collection->source()->isLocal() )
|
if ( collection->source()->isLocal() )
|
||||||
setTitle( tr( "Your Collection" ) );
|
setTitle( tr( "My Collection" ) );
|
||||||
else
|
else
|
||||||
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
||||||
}
|
}
|
||||||
@@ -677,7 +677,7 @@ TreeModel::addFilteredCollection( const collection_ptr& collection, unsigned int
|
|||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
||||||
|
|
||||||
if ( collection->source()->isLocal() )
|
if ( collection->source()->isLocal() )
|
||||||
setTitle( tr( "Your Collection" ) );
|
setTitle( tr( "My Collection" ) );
|
||||||
else
|
else
|
||||||
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,15 @@ SourceInfoWidget::SourceInfoWidget( const Tomahawk::source_ptr& source, QWidget*
|
|||||||
m_recentAlbumModel->addFilteredCollection( source->collection(), 20, DatabaseCommand_AllAlbums::ModificationTime );
|
m_recentAlbumModel->addFilteredCollection( source->collection(), 20, DatabaseCommand_AllAlbums::ModificationTime );
|
||||||
|
|
||||||
m_title = tr( "New Additions" );
|
m_title = tr( "New Additions" );
|
||||||
m_description = tr( "Recent activity from %1" ).arg( source->isLocal() ? tr( "Your Collection" ) : source->friendlyName() );
|
if ( source->isLocal() )
|
||||||
|
{
|
||||||
|
m_description = tr( "My recent activity" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_description = tr( "Recent activity from %1" ).arg( source->friendlyName() );
|
||||||
|
}
|
||||||
|
|
||||||
m_pixmap.load( RESPATH "images/new-additions.png" );
|
m_pixmap.load( RESPATH "images/new-additions.png" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user