mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Move markup out of album string in D-Bus message.
This commit is contained in:
@@ -190,7 +190,7 @@ FdoNotifyPlugin::nowPlaying( const QVariant& input )
|
||||
// Remark: If using xml-based markup in notifications, the supplied strings need to be escaped.
|
||||
QString album;
|
||||
if ( !hash[ "album" ].isEmpty() )
|
||||
album = tr( "\n<i>on</i> %1", "%1 is an album name" ).arg( Qt::escape( hash[ "album" ] ) );
|
||||
album = QString( "\n<i>%1</i> %2" ).arg( tr( "on", "'on' is followed by an album name" ) ).arg( Qt::escape( hash[ "album" ] ) );
|
||||
|
||||
messageText = tr( "%1\n<i>by</i> %2%3.", "%1 is a title, %2 is an artist and %3 is replaced by either the previous message or nothing" )
|
||||
.arg( Qt::escape( hash[ "title" ] ) )
|
||||
|
Reference in New Issue
Block a user