mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
* Added comments to some translations.
This commit is contained in:
@@ -133,16 +133,16 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->query()->playedBy().second ), true );
|
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->query()->playedBy().second ), true );
|
||||||
|
|
||||||
if ( source == SourceList::instance()->getLocal() )
|
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
|
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() )
|
if ( m_mode == LatestAdditions && item->query()->numResults() )
|
||||||
{
|
{
|
||||||
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->query()->results().first()->modificationTime() ), true );
|
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 )
|
if ( m_mode == LovedTracks )
|
||||||
@@ -206,9 +206,9 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
painter->setFont( smallFont );
|
painter->setFont( smallFont );
|
||||||
QTextDocument textDoc;
|
QTextDocument textDoc;
|
||||||
if ( album.isEmpty() )
|
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
|
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.setDocumentMargin( 0 );
|
||||||
textDoc.setDefaultFont( painter->font() );
|
textDoc.setDefaultFont( painter->font() );
|
||||||
textDoc.setDefaultTextOption( m_topOption );
|
textDoc.setDefaultTextOption( m_topOption );
|
||||||
|
Reference in New Issue
Block a user