[Goodies-commits] r5026 - in xfce4-screenshooter-plugin/trunk: . po src

Jerome Guelfucci jeromeg at xfce.org
Sat Jul 5 11:23:55 CEST 2008


Author: jeromeg
Date: 2008-07-05 09:23:55 +0000 (Sat, 05 Jul 2008)
New Revision: 5026

Modified:
   xfce4-screenshooter-plugin/trunk/ChangeLog
   xfce4-screenshooter-plugin/trunk/po/POTFILES.in
   xfce4-screenshooter-plugin/trunk/src/main.c
   xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.c
   xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.h
Log:
Make filename translatable.

Modified: xfce4-screenshooter-plugin/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter-plugin/trunk/ChangeLog	2008-07-02 21:30:16 UTC (rev 5025)
+++ xfce4-screenshooter-plugin/trunk/ChangeLog	2008-07-05 09:23:55 UTC (rev 5026)
@@ -1,3 +1,7 @@
+2008-07-05 jeromeg
+
+	* src/*, po/POTFILES.in: bugfix, make filename translatable.
+
 2008-06-29 jeromeg
 
 	* src/screenshooter-plugin.c:

Modified: xfce4-screenshooter-plugin/trunk/po/POTFILES.in
===================================================================
--- xfce4-screenshooter-plugin/trunk/po/POTFILES.in	2008-07-02 21:30:16 UTC (rev 5025)
+++ xfce4-screenshooter-plugin/trunk/po/POTFILES.in	2008-07-05 09:23:55 UTC (rev 5026)
@@ -1,3 +1,4 @@
 src/screenshooter-plugin.c
 src/main.c
+src/screenshooter-utils.c
 src/screenshooter.desktop.in.in

Modified: xfce4-screenshooter-plugin/trunk/src/main.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/main.c	2008-07-02 21:30:16 UTC (rev 5025)
+++ xfce4-screenshooter-plugin/trunk/src/main.c	2008-07-05 09:23:55 UTC (rev 5026)
@@ -29,8 +29,6 @@
 #include <config.h>
 #endif
 
-#include <libxfce4util/libxfce4util.h>
-
 #include "screenshooter-utils.h"
 
 gboolean version = FALSE;

Modified: xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.c	2008-07-02 21:30:16 UTC (rev 5025)
+++ xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.c	2008-07-05 09:23:55 UTC (rev 5026)
@@ -105,7 +105,7 @@
       if (XQueryTree (GDK_DISPLAY (), xid, &root,
 		      &parent, &children, &nchildren) == 0)
 	{
-	  g_warning ("Couldn't find window manager window");
+	  g_warning ( _("Couldn't find window manager window") );
 	  return None;
 	}
 
@@ -157,7 +157,7 @@
   	return NULL;
   }      
   
-  file_name = g_strdup ("Screenshot.png");
+  file_name = g_strdup ( _("Screenshot.png") );
     
   if( g_access ( g_build_filename (uri, file_name, NULL), F_OK ) != 0 ) 
   {
@@ -168,7 +168,7 @@
   {
     i++;
     g_free (file_name);
-    file_name = g_strdup_printf ("Screenshot-%d.png", i);
+    file_name = g_strdup_printf ( _("Screenshot-%d.png"), i);
   }
   while( g_access ( g_build_filename (uri, file_name, NULL), F_OK ) == 0 );
     

Modified: xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.h
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.h	2008-07-02 21:30:16 UTC (rev 5025)
+++ xfce4-screenshooter-plugin/trunk/src/screenshooter-utils.h	2008-07-05 09:23:55 UTC (rev 5026)
@@ -33,6 +33,8 @@
 #include <gdk/gdkx.h>
 #include <glib/gstdio.h>
 
+#include <libxfce4util/libxfce4util.h>
+
 #include <fcntl.h>
 #include <X11/Xatom.h>
 #include <unistd.h>




More information about the Goodies-commits mailing list