[Goodies-commits] r2911 - in ristretto/trunk: . src

Stephan Arts stephan at xfce.org
Fri Jul 13 09:08:10 CEST 2007


Author: stephan
Date: 2007-07-13 07:08:10 +0000 (Fri, 13 Jul 2007)
New Revision: 2911

Modified:
   ristretto/trunk/Makefile.am
   ristretto/trunk/src/main.c
Log:
Fix make distcheck
Fix i18n



Modified: ristretto/trunk/Makefile.am
===================================================================
--- ristretto/trunk/Makefile.am	2007-07-13 05:15:28 UTC (rev 2910)
+++ ristretto/trunk/Makefile.am	2007-07-13 07:08:10 UTC (rev 2911)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = src
+SUBDIRS = src po
 
 desktopdir = $(datadir)/applications
 desktop_in_files = ristretto.desktop.in
@@ -12,6 +12,7 @@
 	intltool-extract.in \
 	intltool-merge.in \
 	intltool-update.in \
+	gettext.h \
 	$(desktop_in_files) \
 	$(pixmaps_DATA) \
 	$(wrapper_DATA)

Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-07-13 05:15:28 UTC (rev 2910)
+++ ristretto/trunk/src/main.c	2007-07-13 07:08:10 UTC (rev 2911)
@@ -34,6 +34,13 @@
 int main(int argc, char **argv)
 {
 	GdkPixbuf *pixbuf;
+
+	#ifdef ENABLE_NLS
+	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ 	textdomain (GETTEXT_PACKAGE);
+	#endif
+
 	gtk_init(&argc, &argv);
 
 	GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);




More information about the Goodies-commits mailing list