From 9afadd3dbeeee0d681f017968529181e40d3c018 Mon Sep 17 00:00:00 2001 From: Jordi Albornoz Date: Mon, 28 Oct 2002 02:04:05 +0000 Subject: [PATCH] add translation credits, gtetrinet's logo and a hyperlink to gtetrinet's homepage in the About dialog. set bind_textdomain_codeset to "UTF-8". Bump version to 0.5.0pre1. --- ChangeLog | 10 ++++++++++ configure.in | 2 +- src/Makefile.am | 2 +- src/commands.c | 30 ++++++++++++++++++++++++------ src/gtetrinet.c | 2 +- 5 files changed, 37 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 993fc24..3d38c53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002-10-28 Jordi Mallach + + * src/commands.c (about_command): rename documentors to documenters. + Add translator credits. Assign the gtetrinet icon to the about dialog. + Add a hyperlink to GTetrinet's homepage. + * src/gtetrinet.c (main): set bind_textdomain_codeset to "UTF-8". + Remove useless setlocale call. + + * configure.in: bump version to 0.5.0pre1. + 2002-10-28 Jordi Mallach * Finally, GNOME2! diff --git a/configure.in b/configure.in index 5959377..4ff0d24 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ AC_INIT AC_PREREQ(2.52) AC_CONFIG_SRCDIR([src/gtetrinet.c]) AM_CONFIG_HEADER(config.h:config.h.in) -AM_INIT_AUTOMAKE(gtetrinet, 0.4.4) +AM_INIT_AUTOMAKE(gtetrinet, 0.5.0pre1) AC_PROG_CC diff --git a/src/Makefile.am b/src/Makefile.am index 7142cd7..1db1382 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,7 +4,7 @@ localedir = $(datadir)/locale GTET_DEBUG = -Wall -W -Wno-unused -g3 -O0 -INCLUDES = -DLOCALEDIR=\"$(localedir)\" $(GTET_CFLAGS) $(GTET_DEBUG) +INCLUDES = -DLOCALEDIR=\"$(localedir)\" -DPIXMAPSDIR=\""$(datadir)/pixmaps"\" $(GTET_CFLAGS) $(GTET_DEBUG) LDADD = $(GTET_LIBS) AM_CPPFLAGS = -DGTETRINET_DATA=\"$(pkgdatadir)\" diff --git a/src/commands.c b/src/commands.c index b6a2f5c..16aed95 100644 --- a/src/commands.c +++ b/src/commands.c @@ -219,21 +219,39 @@ void commands_checkstate () void about_command (GtkWidget *widget, gpointer data) { - GtkWidget *about; + GtkWidget *about, *hbox; + GdkPixbuf *logo; const char *authors[] = {N_("Ka-shu Wong "), N_("James Antill "), NULL}; - const char *documentors[] = {N_("Ka-shu Wong "), + const char *documenters[] = {N_("Ka-shu Wong "), N_("Jordi Mallach "), NULL}; + /* Translators: translate as your names & emails */ + const char *translators = _("translator_credits"); + + logo = gdk_pixbuf_new_from_file (PIXMAPSDIR "/gtetrinet.png", NULL); about = gnome_about_new (APPNAME, APPVERSION, _("(C) 1999, 2000, 2001, 2002 Ka-shu Wong"), - _("A Tetrinet client for GNOME.\n" - "Homepage: http://gtetrinet.sourceforge.net/\n"), + _("A Tetrinet client for GNOME.\n"), authors, - documentors, - NULL, NULL); + documenters, + strcmp (translators, "translator_credits") != 0 ? + translators : NULL, + logo); + + if (logo != NULL) + g_object_unref (logo); + + hbox = gtk_hbox_new (TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), + gnome_href_new ("http://gtetrinet.sourceforge.net/", _("GTetrinet Home Page")), + FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (about)->vbox), + hbox, TRUE, FALSE, 0); + gtk_widget_show_all (hbox); + gtk_widget_show (about); } diff --git a/src/gtetrinet.c b/src/gtetrinet.c index f86af93..88de982 100644 --- a/src/gtetrinet.c +++ b/src/gtetrinet.c @@ -128,8 +128,8 @@ int main (int argc, char *argv[]) g_assert(buf[1] == 'b'); g_assert(buf[0] == 'a'); - setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); + bind_textdomain_codeset(PACKAGE, "UTF-8"); textdomain(PACKAGE); srand (time(NULL)); -- 2.50.1