summaryrefslogtreecommitdiffstats
path: root/dialogs.c
diff options
context:
space:
mode:
Diffstat (limited to 'dialogs.c')
-rw-r--r--dialogs.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/dialogs.c b/dialogs.c
index bf7835a..a2999f2 100644
--- a/dialogs.c
+++ b/dialogs.c
@@ -14,7 +14,8 @@ typedef enum lvl
-/** Signature leve combo box text */
+/* Signature leve combo box text */
+/*
gchar *sig_level_texts[] =
{
"Do not use signature level",
@@ -23,7 +24,7 @@ gchar *sig_level_texts[] =
"Level 2 - prefered",
"Level 3 - required"
};
-
+*/
/**
@@ -167,7 +168,7 @@ void show_options_dialog ()
row = 0;
/* Create the widgets */
- options.dialog = gtk_dialog_new_with_buttons ("Options",
+ options.dialog = gtk_dialog_new_with_buttons (_("Options"),
GTK_WINDOW (gui.win),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK, GTK_RESPONSE_OK,
@@ -180,7 +181,7 @@ void show_options_dialog ()
gtk_container_add (GTK_CONTAINER (content_area), table);
label = gtk_label_new (NULL);
- gtk_label_set_markup (GTK_LABEL (label), "<span weight=\"bold\"><big>Set ncpmount options:</big></span>");
+ gtk_label_set_markup (GTK_LABEL (label), _("<span weight=\"bold\"><big>Set ncpmount options:</big></span>"));
gtk_table_attach(GTK_TABLE(table), label, 0, 2, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
row++;
@@ -190,7 +191,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Codepage [-p]:");
+ label = gtk_label_new (_("Codepage [-p]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -199,7 +200,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Charset [-y]:");
+ label = gtk_label_new (_("Charset [-y]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL, GTK_FILL | GTK_EXPAND, 6, 0);
@@ -213,16 +214,16 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Signature level [-i]:");
+ label = gtk_label_new (_("Signature level [-i]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL, GTK_FILL | GTK_EXPAND, 6, 0);
options.combo_signature = gtk_combo_box_new_text();
- gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), sig_level_texts[NOT_USED]);
- gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), sig_level_texts[NEVER]);
- gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), sig_level_texts[SUPPORTED]);
- gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), sig_level_texts[PREFERED]);
- gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), sig_level_texts[REQUIRED]);
+ gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), _("Do not use signature level"));
+ gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), _("Level 0 - never"));
+ gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), _("Level 1 - supported"));
+ gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), _("Level 2 - prefered"));
+ gtk_combo_box_append_text(GTK_COMBO_BOX(options.combo_signature), _("Level 3 - required"));
gtk_combo_box_set_active(GTK_COMBO_BOX(options.combo_signature), 0);
gtk_table_attach_defaults (GTK_TABLE (table), options.combo_signature, 1, 2, row, row+1);
@@ -234,7 +235,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Volume to mount [-V]:");
+ label = gtk_label_new (_("Volume to mount [-V]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -248,7 +249,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Mounted files uid [-u]:");
+ label = gtk_label_new (_("Mounted files uid [-u]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -257,7 +258,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Mounted files gid [-g]:");
+ label = gtk_label_new (_("Mounted files gid [-g]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -266,7 +267,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Files permission [-f]:");
+ label = gtk_label_new (_("Files permission [-f]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -275,7 +276,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Dirs permission [-d]:");
+ label = gtk_label_new (_("Dirs permission [-d]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -288,7 +289,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Timeout [-t]:");
+ label = gtk_label_new (_("Timeout [-t]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -297,7 +298,7 @@ void show_options_dialog ()
row++;
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("Retry count [-r]:");
+ label = gtk_label_new (_("Retry count [-r]:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_table_attach(GTK_TABLE(table), halign, 0, 1, row, row+1, GTK_FILL , GTK_FILL | GTK_EXPAND, 6, 0);
@@ -310,19 +311,19 @@ void show_options_dialog ()
gtk_table_attach (GTK_TABLE(table), hsep, 0, 2, row, row+1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 6, 6);
row++;
- options.check_C = gtk_check_button_new_with_label ("Don't convet password to uppercase [-C]");
+ options.check_C = gtk_check_button_new_with_label (_("Don't convet password to uppercase [-C]"));
gtk_table_attach_defaults (GTK_TABLE (table), options.check_C, 0, 2, row, row+1);
row++;
- options.check_m = gtk_check_button_new_with_label ("Allow multiple logins to server [-m]");
+ options.check_m = gtk_check_button_new_with_label (_("Allow multiple logins to server [-m]"));
gtk_table_attach_defaults (GTK_TABLE (table), options.check_m, 0, 2, row, row+1);
row++;
- options.check_s = gtk_check_button_new_with_label ("Enable renaming/deletion of read-only files [-s]");
+ options.check_s = gtk_check_button_new_with_label (_("Enable renaming/deletion of read-only files [-s]"));
gtk_table_attach_defaults (GTK_TABLE (table), options.check_s, 0, 2, row, row+1);
row++;
- options.check_b = gtk_check_button_new_with_label ("Force bindery login to NDS servers [-b]");
+ options.check_b = gtk_check_button_new_with_label (_("Force bindery login to NDS servers [-b]"));
gtk_table_attach_defaults (GTK_TABLE (table), options.check_b, 0, 2, row, row+1);
row++;
@@ -384,7 +385,7 @@ void show_ncpmount_command ()
gchar *command = get_ncpmount_command(FALSE,&strlen);
/* Create the widgets */
- dialog = gtk_dialog_new_with_buttons ("Show ncpmount command",
+ dialog = gtk_dialog_new_with_buttons (_("Show ncpmount command"),
GTK_WINDOW (gui.win),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
@@ -398,7 +399,7 @@ void show_ncpmount_command ()
gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
halign = gtk_alignment_new(0, 0, 0, 1);
- label = gtk_label_new ("ncpmount command with selected options:");
+ label = gtk_label_new (_("ncpmount command with selected options:"));
gtk_container_add(GTK_CONTAINER(halign), label);
gtk_box_pack_start (GTK_BOX (vbox), halign, FALSE, TRUE, 0);