#include <glib.h>
#include <clamav.h>
-#include "common/plugin.h"
-#include "common/utils.h"
+#include "intl.h"
+#include "plugin.h"
+#include "utils.h"
#include "hooks.h"
#include "inc.h"
#include "mimeview.h"
const gchar *plugin_name(void)
{
- return "Clam AntiVirus";
+ return _("Clam AntiVirus");
}
const gchar *plugin_desc(void)
{
- return "This plugin uses Clam AntiVirus to scan all message attachments "
+ return _("This plugin uses Clam AntiVirus to scan all message attachments "
"that are received from a POP account.\n"
"\n"
"When a message attachment is found to contain a virus it can be "
"This plugin only contains the actual function for scanning "
"and deleting or moving the message. You probably want to load "
"the Gtk+ User Interface plugin too, otherwise you will have to "
- "manually write the plugin configuration.\n";
+ "manually write the plugin configuration.\n");
}
const gchar *plugin_type(void)
#include <gtk/gtk.h>
#include "intl.h"
-#include "common/plugin.h"
-#include "common/utils.h"
+#include "plugin.h"
+#include "utils.h"
#include "prefs.h"
#include "folder.h"
#include "prefs_gtk.h"
gtk_table_set_row_spacings(GTK_TABLE(table), 4);
gtk_table_set_col_spacings(GTK_TABLE(table), 8);
- label1 = gtk_label_new ("Enable virus scanning");
+ label1 = gtk_label_new(_("Enable virus scanning"));
gtk_widget_show (label1);
gtk_table_attach (GTK_TABLE (table), label1, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label2 = gtk_label_new ("Enable archive content scanning");
+ label2 = gtk_label_new(_("Enable archive content scanning"));
gtk_widget_show (label2);
gtk_table_attach (GTK_TABLE (table), label2, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label3 = gtk_label_new ("Maximum attachment size");
+ label3 = gtk_label_new(_("Maximum attachment size"));
gtk_widget_show (label3);
gtk_table_attach (GTK_TABLE (table), label3, 0, 1, 4, 5,
(GtkAttachOptions) (GTK_FILL),
gtk_widget_show (max_size);
gtk_box_pack_start (GTK_BOX (hbox1), max_size, FALSE, FALSE, 0);
- label4 = gtk_label_new ("MB");
+ label4 = gtk_label_new(_("MB"));
gtk_widget_show (label4);
gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0);
- label5 = gtk_label_new ("Receive infected messages");
+ label5 = gtk_label_new(_("Receive infected messages"));
gtk_widget_show (label5);
gtk_table_attach (GTK_TABLE (table), label5, 0, 1, 5, 6,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label6 = gtk_label_new ("Save folder");
+ label6 = gtk_label_new (_("Save folder"));
gtk_widget_show (label6);
gtk_table_attach (GTK_TABLE (table), label6, 0, 1, 6, 7,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
label7 =
- gtk_label_new(_
- ("Leave empty to use the default trash folder"));
+ gtk_label_new(_("Leave empty to use the default trash folder"));
gtk_widget_show(label7);
gtk_table_attach(GTK_TABLE(table), label7, 1, 2, 7, 8,
(GtkAttachOptions) (GTK_FILL),
const gchar *plugin_name(void)
{
- return "Clam AntiVirus GTK";
+ return _("Clam AntiVirus GTK");
}
const gchar *plugin_desc(void)
{
- return "This plugin provides a Preferences page for the Clam AntiVirus "
+ return _("This plugin provides a Preferences page for the Clam AntiVirus "
"plugin.\n"
"\n"
"You will find the options in the Other Preferences window "
"content scanning, set the maximum size of an attachment to be "
"checked, (if the attachment is larger it will not be checked), "
"configure whether infected mail should be received (default: Yes) "
- "and select the folder where infected mail will be saved.\n";
+ "and select the folder where infected mail will be saved.\n");
}
const gchar *plugin_type(void)
#include <gtk/gtk.h>
#include "intl.h"
-#include "common/utils.h"
+#include "utils.h"
#include "prefs.h"
#include "prefs_gtk.h"
#include "prefswindow.h"
gtk_widget_show(vbox);
local_checkbox = gtk_check_button_new_with_label
- ("Don't Follow Links in Mails");
+ (_("Don't Follow Links in Mails"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(local_checkbox),
dillo_prefs.local);
gtk_box_pack_start(GTK_BOX(vbox), local_checkbox, FALSE, FALSE, 0);
gtk_widget_show(local_checkbox);
- label = gtk_label_new("(You can still allow following links\n"
- "by reloading the page)");
+ label = gtk_label_new(_("(You can still allow following links\n"
+ "by reloading the page)"));
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
full_checkbox = gtk_check_button_new_with_label
- ("Full Window Mode (Hide Controls)");
+ (_("Full Window Mode (Hide Controls)"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(full_checkbox),
dillo_prefs.full);
gtk_box_pack_start(GTK_BOX(vbox), full_checkbox, FALSE, FALSE, 0);