diff options
Diffstat (limited to 'asclock')
-rw-r--r-- | asclock/asclock.c | 3 | ||||
-rw-r--r-- | asclock/asclock.h | 2 | ||||
-rw-r--r-- | asclock/dialogs.c | 15 |
3 files changed, 15 insertions, 5 deletions
diff --git a/asclock/asclock.c b/asclock/asclock.c index e40587a35..8f26e6b7f 100644 --- a/asclock/asclock.c +++ b/asclock/asclock.c @@ -430,6 +430,9 @@ int main( int argc, char *argv[] ) GdkColor colour; GdkColormap *cmap; + bindtextdomain(PACKAGE, GNOMELOCALEDIR); + textdomain(PACKAGE); + my = (asclock *)malloc(sizeof(asclock)); memset(my, sizeof(my), 0); config(); diff --git a/asclock/asclock.h b/asclock/asclock.h index ea0b0f705..e34f1cffd 100644 --- a/asclock/asclock.h +++ b/asclock/asclock.h @@ -15,8 +15,8 @@ #include <sys/time.h> #include <sys/stat.h> #ifdef ASCLOCK_GNOME -#include "applet-widget.h" #include "../../config.h" +#include "applet-widget.h" #endif #include "version.h" diff --git a/asclock/dialogs.c b/asclock/dialogs.c index f6341c9dc..4ee721d5a 100644 --- a/asclock/dialogs.c +++ b/asclock/dialogs.c @@ -1,3 +1,4 @@ +#include <config.h> #include <gdk/gdk.h> #include <gnome.h> #include <applet-widget.h> @@ -16,7 +17,7 @@ void about_dialog(AppletWidget *applet, gpointer data) about = gnome_about_new (_("ASClock"), ASCLOCK_VERSION, - "(C) 1998 the Free Software Foundation", + _("(C) 1998 the Free Software Foundation"), authors, _("Who said NeXT is dead?"), NULL); @@ -223,8 +224,8 @@ static int property_close_cb(AppletWidget *applet, gpointer data) void properties_dialog(AppletWidget *applet, gpointer data) { - gchar *timezone_titles[2] = { "Continent/City" , NULL}; - gchar *themes_titles[2] = { "Clock Theme", NULL}; + gchar *timezone_titles[2] = { N_("Continent/City") , NULL}; + gchar *themes_titles[2] = { N_("Clock Theme"), NULL}; GtkWidget *label; GtkWidget *frame; GtkWidget *hbox; @@ -256,12 +257,15 @@ void properties_dialog(AppletWidget *applet, gpointer data) my_asclock->pwin = gnome_property_box_new(); gtk_window_set_title(GTK_WINDOW(&GNOME_PROPERTY_BOX(my_asclock->pwin)->dialog.window), - "ASClock Settings"); + _("ASClock Settings")); frame = gtk_vbox_new(5, TRUE); hbox = gtk_hbox_new(TRUE, 5); opts = gtk_vbox_new(5, TRUE); +#ifdef ENABLE_NLS + themes_titles[0]=_(themes_titles[0]); +#endif list = gtk_clist_new_with_titles(1, themes_titles); gtk_clist_set_column_width(GTK_CLIST(list), 0, 200); @@ -343,6 +347,9 @@ void properties_dialog(AppletWidget *applet, gpointer data) gtk_widget_show(my_asclock->pic); +#ifdef ENABLE_NLS + timezone_titles[0]=_(timezone_titles[0]); +#endif list = gtk_clist_new_with_titles(1, timezone_titles); gtk_clist_set_column_width(GTK_CLIST(list), 0, 200); |