[anjuta] Make the tasks in the Git tasks window show up translated.
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Make the tasks in the Git tasks window show up translated.
- Date: Mon, 21 Nov 2011 20:02:01 +0000 (UTC)
commit 20c55a04c67354dd718476c93f019ec13a16293f
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Sun Mar 6 13:40:23 2011 +0100
Make the tasks in the Git tasks window show up translated.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=644016
libanjuta/anjuta-command-bar.c | 6 +++---
libanjuta/anjuta-command-bar.h | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libanjuta/anjuta-command-bar.c b/libanjuta/anjuta-command-bar.c
index 065fc7e..cd3eacb 100644
--- a/libanjuta/anjuta-command-bar.c
+++ b/libanjuta/anjuta-command-bar.c
@@ -136,8 +136,8 @@ anjuta_command_bar_add_action_group (AnjutaCommandBar *self,
{
if (entries[i].type == ANJUTA_COMMAND_BAR_ENTRY_BUTTON)
{
- action = gtk_action_new (entries[i].action_name, entries[i].label,
- entries[i].tooltip, entries[i].stock_icon);
+ action = gtk_action_new (entries[i].action_name, _(entries[i].label),
+ _(entries[i].tooltip), entries[i].stock_icon);
button = gtk_button_new();
gtk_action_group_add_action (action_group, action);
@@ -168,7 +168,7 @@ anjuta_command_bar_add_action_group (AnjutaCommandBar *self,
}
else
{
- frame_label_text = g_strdup_printf ("<b>%s</b>", entries[i].label);
+ frame_label_text = g_strdup_printf ("<b>%s</b>", _(entries[i].label));
frame_label = gtk_label_new (NULL);
frame = gtk_frame_new (NULL);
diff --git a/libanjuta/anjuta-command-bar.h b/libanjuta/anjuta-command-bar.h
index 014130c..5ec28cf 100644
--- a/libanjuta/anjuta-command-bar.h
+++ b/libanjuta/anjuta-command-bar.h
@@ -22,6 +22,7 @@
#include <glib-object.h>
#include <gtk/gtk.h>
+#include <glib/gi18n.h>
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]