mark the libnotify strings for translation

This commit is contained in:
Charles Kerr 2008-03-03 04:44:27 +00:00
parent dd9764d181
commit 126020e82a
1 changed files with 4 additions and 3 deletions

View File

@ -10,6 +10,7 @@
* $Id$
*/
#include <glib/gi18n.h>
#include "notify.h"
#ifndef HAVE_LIBNOTIFY
@ -55,12 +56,12 @@ void
tr_notify_send(TrTorrent *tor)
{
const tr_info * info = tr_torrent_info( tor );
NotifyNotification * n = notify_notification_new( "Torrent Complete", info->name, "transmission", NULL );
NotifyNotification * n = notify_notification_new( _( "Torrent Complete" ), info->name, "transmission", NULL );
if (info->fileCount == 1)
notify_notification_add_action( n, "file", "Open File",
notify_notification_add_action( n, "file", _( "Open File" ),
NOTIFY_ACTION_CALLBACK(notifyCallback), tor, NULL);
notify_notification_add_action( n, "folder", "Open Containing Folder",
notify_notification_add_action( n, "folder", _( "Open Folder" ),
NOTIFY_ACTION_CALLBACK(notifyCallback), tor, NULL );
notify_notification_show( n, NULL );
}