From 30052d80ebbacc65cb389dae7f6a19eb10fe996f Mon Sep 17 00:00:00 2001 From: Sergey Panov Date: Mon, 8 Mar 1999 05:18:50 +0000 Subject: [PATCH] * gcustom-layout.c, gprefs.c: Make the preferences dialog translatable. (include files in gcustom-layout.c and use of the _() macro in gprefs.c) --- gnome/ChangeLog | 6 ++++++ gnome/gcustom-layout.c | 2 ++ gnome/gprefs.c | 12 ++++++------ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index a220bf4dc..d683df03d 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,9 @@ +1999-03-08 Sergey Panov + + * gcustom-layout.c, gprefs.c: Make the preferences dialog + translatable. (include files in gcustom-layout.c and use of + the _() macro in gprefs.c) + 1999-02-28 Miguel de Icaza * gnome-file-property-dialog.c (create_settings_pane): Simplify diff --git a/gnome/gcustom-layout.c b/gnome/gcustom-layout.c index ea3c3a3cf..37925eae3 100644 --- a/gnome/gcustom-layout.c +++ b/gnome/gcustom-layout.c @@ -7,6 +7,8 @@ * Author: Owen Taylor */ +#include +#include "x.h" #include #include "panel.h" #include "gcustom-layout.h" diff --git a/gnome/gprefs.c b/gnome/gprefs.c index 11733cf37..69887b7f8 100644 --- a/gnome/gprefs.c +++ b/gnome/gprefs.c @@ -284,7 +284,7 @@ create_prop_bool (PrefsDlg *dlg, Property *prop) { GtkWidget *checkbox; - checkbox = gtk_check_button_new_with_label (prop->label); + checkbox = gtk_check_button_new_with_label (_(prop->label)); if (*((int*) prop->property_variable)) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), @@ -313,11 +313,11 @@ create_prop_string (PrefsDlg *dlg, Property *prop) hbox = gtk_hbox_new (FALSE, GNOME_PAD_SMALL); - label = gtk_label_new (prop->label); + label = gtk_label_new (_(prop->label)); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - entry = gnome_entry_new (prop->label); + entry = gnome_entry_new (_(prop->label)); gtk_entry = gnome_entry_gtk_entry (GNOME_ENTRY (entry)); max_length = (int)prop->extra_data1; @@ -352,11 +352,11 @@ create_prop_int (PrefsDlg *dlg, Property *prop) hbox = gtk_hbox_new (FALSE, GNOME_PAD_SMALL); - label = gtk_label_new (prop->label); + label = gtk_label_new (_(prop->label)); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - entry = gnome_entry_new (prop->label); + entry = gnome_entry_new (_(prop->label)); snprintf (buffer, 9, "%d", *( (int*) prop->property_variable)); @@ -437,7 +437,7 @@ create_page (PrefsDlg *dlg, PrefsPage *page) gnome_property_box_append_page (GNOME_PROPERTY_BOX (dlg->prop_box), vbox, - gtk_label_new (page->title)); + gtk_label_new (_(page->title))); } static void -- 2.11.4.GIT