From 02c89b93ff0b5942e66fdfbb7562641a0ff29d2c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 13 Feb 2012 18:35:53 +0100 Subject: [PATCH] Mark separator names for translation --- src/ui/gui/text-data-import-dialog.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 4f9e5d6bbc..547105fe45 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -1009,15 +1009,15 @@ struct separator /* All the separators in the dialog box. */ static const struct separator separators[] = { - {"space", ' '}, - {"tab", '\t'}, - {"bang", '!'}, - {"colon", ':'}, - {"comma", ','}, - {"hyphen", '-'}, - {"pipe", '|'}, - {"semicolon", ';'}, - {"slash", '/'}, + {N_("space"), ' '}, + {N_("tab"), '\t'}, + {N_("bang"), '!'}, + {N_("colon"), ':'}, + {N_("comma"), ','}, + {N_("hyphen"), '-'}, + {N_("pipe"), '|'}, + {N_("semicolon"), ';'}, + {N_("slash"), '/'}, }; #define SEPARATOR_CNT (sizeof separators / sizeof *separators) @@ -1077,7 +1077,7 @@ init_separators_page (struct import_assistant *ia) g_signal_connect (p->custom_cb, "toggled", G_CALLBACK (on_separators_custom_cb_toggle), ia); for (i = 0; i < SEPARATOR_CNT; i++) - g_signal_connect (get_widget_assert (builder, separators[i].name), + g_signal_connect (get_widget_assert (builder, gettext(separators[i].name)), "toggled", G_CALLBACK (on_separator_toggle), ia); g_signal_connect (p->escape_cb, "toggled", G_CALLBACK (on_separator_toggle), ia); -- 2.30.2