mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 02:09:48 +01:00
* Be consistent with 'My Collection'.
This commit is contained in:
parent
6789c1f032
commit
c3197a39b0
@ -83,7 +83,7 @@ CollectionFlatModel::addCollection( const collection_ptr& collection, bool sendN
|
||||
}
|
||||
|
||||
if ( collection->source()->isLocal() )
|
||||
setTitle( tr( "Your Collection" ) );
|
||||
setTitle( tr( "My Collection" ) );
|
||||
else
|
||||
setTitle( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
||||
}
|
||||
|
@ -652,7 +652,7 @@ TreeModel::addCollection( const collection_ptr& collection )
|
||||
setIcon( collection->source()->avatar() );
|
||||
|
||||
if ( collection->source()->isLocal() )
|
||||
setTitle( tr( "Your Collection" ) );
|
||||
setTitle( tr( "My Collection" ) );
|
||||
else
|
||||
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 ) );
|
||||
|
||||
if ( collection->source()->isLocal() )
|
||||
setTitle( tr( "Your Collection" ) );
|
||||
setTitle( tr( "My Collection" ) );
|
||||
else
|
||||
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_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" );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user