From 7980118516080c988d6431851c147671b614cf8f Mon Sep 17 00:00:00 2001 From: Lasse Liehu Date: Tue, 19 Mar 2013 20:13:04 +0200 Subject: [PATCH] Add context for placeholders in 3 UI messages added recently --- src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp index 8825dfcc8..389b07334 100644 --- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp +++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp @@ -190,9 +190,9 @@ 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( "
on %1" ).arg( Qt::escape( hash[ "album" ] ) ); + album = tr( "
on %1", "%1 is an album name" ).arg( Qt::escape( hash[ "album" ] ) ); - messageText = tr( "%1
by %2%3." ) + messageText = tr( "%1
by %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" ] ) ) .arg( Qt::escape( hash[ "artist" ] ) ) .arg( album ); @@ -201,9 +201,9 @@ FdoNotifyPlugin::nowPlaying( const QVariant& input ) { QString album; if ( !hash[ "album" ].isEmpty() ) - album = QString( " %1" ).arg( tr( "on \"%1\"" ).arg( hash[ "album" ] ) ); + album = QString( " %1" ).arg( tr( "on \"%1\"", "%1 is an album name" ).arg( hash[ "album" ] ) ); - messageText = tr( "\"%1\" by %2%3." ) + messageText = tr( "\"%1\" by %2%3.", "%1 is a title, %2 is an artist and %3 is replaced by either the previous message or nothing" ) .arg( hash[ "title" ] ) .arg( hash[ "artist" ] ) .arg( album );