mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Added comments to some translations.
This commit is contained in:
parent
c90435b590
commit
aae4f98ff2
@ -133,16 +133,16 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
||||
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->query()->playedBy().second ), true );
|
||||
|
||||
if ( source == SourceList::instance()->getLocal() )
|
||||
lowerText = QString( tr( "played %1 by you" ) ).arg( playtime );
|
||||
lowerText = QString( tr( "played %1 by you", "e.g. played 3 hours ago by you" ) ).arg( playtime );
|
||||
else
|
||||
lowerText = QString( tr( "played %1 by %2" ) ).arg( playtime ).arg( source->friendlyName() );
|
||||
lowerText = QString( tr( "played %1 by %2", "e.g. played 3 hours ago by SomeSource" ) ).arg( playtime ).arg( source->friendlyName() );
|
||||
}
|
||||
|
||||
if ( m_mode == LatestAdditions && item->query()->numResults() )
|
||||
{
|
||||
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->query()->results().first()->modificationTime() ), true );
|
||||
|
||||
lowerText = QString( tr( "added %1" ) ).arg( playtime );
|
||||
lowerText = QString( tr( "added %1", "e.g. added 3 hours ago" ) ).arg( playtime );
|
||||
}
|
||||
|
||||
if ( m_mode == LovedTracks )
|
||||
@ -206,9 +206,9 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
||||
painter->setFont( smallFont );
|
||||
QTextDocument textDoc;
|
||||
if ( album.isEmpty() )
|
||||
textDoc.setHtml( tr( "by <b>%1</b>" ).arg( artist ) );
|
||||
textDoc.setHtml( tr( "by <b>%1</b>", "e.g. by SomeArtist" ).arg( artist ) );
|
||||
else
|
||||
textDoc.setHtml( tr( "by <b>%1</b> on <b>%2</b>" ).arg( artist ).arg( album ) );
|
||||
textDoc.setHtml( tr( "by <b>%1</b> on <b>%2</b>", "e.g. by SomeArtist on SomeAlbum" ).arg( artist ).arg( album ) );
|
||||
textDoc.setDocumentMargin( 0 );
|
||||
textDoc.setDefaultFont( painter->font() );
|
||||
textDoc.setDefaultTextOption( m_topOption );
|
||||
|
Loading…
x
Reference in New Issue
Block a user