From f25023879f6af121a145c7161043320e52f00744 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 29 Mar 2013 20:20:49 +0100 Subject: [PATCH] Move markup out of album string in D-Bus message. --- src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp index e1244e3d5..71fab68f3 100644 --- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp +++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp @@ -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( "\non %1", "%1 is an album name" ).arg( Qt::escape( hash[ "album" ] ) ); + album = QString( "\n%1 %2" ).arg( tr( "on", "'on' is followed by an album name" ) ).arg( Qt::escape( hash[ "album" ] ) ); messageText = tr( "%1\nby %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" ] ) )