anjuta r3922 - in trunk: . plugins/gtodo plugins/subversion



Author: jhs
Date: Thu May  8 08:20:24 2008
New Revision: 3922
URL: http://svn.gnome.org/viewvc/anjuta?rev=3922&view=rev

Log:
2008-05-08  Johannes Schmid  <jhs gnome org>

	Patch from Marc Lorber <lorber marc wanadoo fr>

	* plugins/gtodo/libgtodo.c (gtodo_client_get_category_from_list):
	* plugins/subversion/subversion-log-dialog.c (create_columns):
	
	Fix translation issues (#530860 and #531411)

Modified:
   trunk/ChangeLog
   trunk/plugins/gtodo/libgtodo.c
   trunk/plugins/subversion/subversion-log-dialog.c

Modified: trunk/plugins/gtodo/libgtodo.c
==============================================================================
--- trunk/plugins/gtodo/libgtodo.c	(original)
+++ trunk/plugins/gtodo/libgtodo.c	Thu May  8 08:20:24 2008
@@ -1,4 +1,5 @@
 #include <glib.h>
+#include <glib/gi18n.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -9,19 +10,6 @@
 #include "libgtodo.h"
 #include <libgnomevfs/gnome-vfs.h>
 
-#ifdef ENABLE_NLS
-#include <libintl.h>
-#include <locale.h>
-#define _(String) gettext (String)
-#  ifdef gettext_noop
-#    define N_(String) gettext_noop (String)
-#  else
-#    define N_(String) (String)
-#  endif
-#else 
-#define _(String) String
-#endif
-
 #ifdef DEBUG
 short int debug = 1;
 #else
@@ -1165,7 +1153,7 @@
 gchar * gtodo_client_get_category_from_list(GTodoList *list)
 {
 	GTodoCategory * cat = list->list->data;
-	return cat->name;
+	return _(cat->name);
 }
 
 gint gtodo_client_get_category_id_from_list(GTodoList *list)

Modified: trunk/plugins/subversion/subversion-log-dialog.c
==============================================================================
--- trunk/plugins/subversion/subversion-log-dialog.c	(original)
+++ trunk/plugins/subversion/subversion-log-dialog.c	Thu May  8 08:20:24 2008
@@ -114,7 +114,7 @@
 	column = gtk_tree_view_column_new ();
 	renderer = gtk_cell_renderer_toggle_new ();
 	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_set_title (column, "Diff");
+	gtk_tree_view_column_set_title (column, _("Diff"));
 	gtk_tree_view_append_column (GTK_TREE_VIEW (log_changes_view), column);
 	gtk_tree_view_column_add_attribute (column, renderer, "active", 
 										COL_DIFF_SELECTED);
@@ -127,7 +127,7 @@
 	column = gtk_tree_view_column_new ();
 	renderer = gtk_cell_renderer_text_new ();
 	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_set_title (column, "Author");
+	gtk_tree_view_column_set_title (column, _("Author"));
 	gtk_tree_view_append_column (GTK_TREE_VIEW (log_changes_view), column);
 	gtk_tree_view_column_add_attribute (column, renderer, "text", 
 										COL_AUTHOR);
@@ -136,7 +136,7 @@
 	column = gtk_tree_view_column_new ();
 	renderer = gtk_cell_renderer_text_new ();
 	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_set_title (column, "Date");
+	gtk_tree_view_column_set_title (column, _("Date"));
 	gtk_tree_view_append_column (GTK_TREE_VIEW (log_changes_view), column);
 	gtk_tree_view_column_add_attribute (column, renderer, "text", 
 										COL_DATE);
@@ -146,7 +146,7 @@
 	column = gtk_tree_view_column_new ();
 	renderer = gtk_cell_renderer_text_new ();
 	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_set_title (column, "Revision");
+	gtk_tree_view_column_set_title (column, _("Revision"));
 	gtk_tree_view_append_column (GTK_TREE_VIEW (log_changes_view), column);
 	gtk_tree_view_column_add_attribute (column, renderer, "text", 
 										COL_REVISION);
@@ -155,7 +155,7 @@
 	column = gtk_tree_view_column_new ();
 	renderer = gtk_cell_renderer_text_new ();
 	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_set_title (column, "Short Log");
+	gtk_tree_view_column_set_title (column, _("Short Log"));
 	gtk_tree_view_append_column (GTK_TREE_VIEW (log_changes_view), column);
 	gtk_tree_view_column_add_attribute (column, renderer, "text", 
 										COL_SHORT_LOG);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]