[anjuta] Mark some strings and a file for translation



commit 2d9edecc7d99b95435865defb12e3c4b3f464434
Author: Jonh Wendell <jwendell gnome org>
Date:   Tue Sep 21 18:26:32 2010 -0300

    Mark some strings and a file for translation

 plugins/snippets-manager/plugin.c           |    8 ++++----
 plugins/snippets-manager/snippets-editor.ui |    6 +++---
 po/POTFILES.in                              |    1 +
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/plugins/snippets-manager/plugin.c b/plugins/snippets-manager/plugin.c
index e26f06a..3aa531e 100644
--- a/plugins/snippets-manager/plugin.c
+++ b/plugins/snippets-manager/plugin.c
@@ -748,7 +748,7 @@ set_up_global_variables_view (SnippetsManagerPlugin *snippets_manager_plugin,
 	/* Set up the name cell */
 	cell = gtk_cell_renderer_text_new ();
 	col = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_title (col, "Name");
+	gtk_tree_view_column_set_title (col, _("Name"));
 	gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
 	gtk_tree_view_column_set_resizable (col, TRUE);
 	gtk_tree_view_column_pack_start (col, cell, FALSE);
@@ -764,7 +764,7 @@ set_up_global_variables_view (SnippetsManagerPlugin *snippets_manager_plugin,
 	/* Set up the type cell */
 	cell = gtk_cell_renderer_toggle_new ();
 	col = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_title (col, "Command?");
+	gtk_tree_view_column_set_title (col, _("Command?"));
 	gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
 	gtk_tree_view_column_set_resizable (col, TRUE);
 	gtk_tree_view_column_pack_start (col, cell, FALSE);
@@ -780,7 +780,7 @@ set_up_global_variables_view (SnippetsManagerPlugin *snippets_manager_plugin,
 	/* Set up the text cell */
 	cell = gtk_cell_renderer_text_new ();
 	col = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_title (col, "Variable text");
+	gtk_tree_view_column_set_title (col, _("Variable text"));
 	gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
 	gtk_tree_view_column_set_resizable (col, TRUE);
 	gtk_tree_view_column_pack_start (col, cell, FALSE);
@@ -798,7 +798,7 @@ set_up_global_variables_view (SnippetsManagerPlugin *snippets_manager_plugin,
 	cell = gtk_cell_renderer_text_new ();
 	g_object_set (cell, "editable", FALSE, NULL);
 	col = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_title (col, "Instant value");
+	gtk_tree_view_column_set_title (col, _("Instant value"));
 	gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
 	gtk_tree_view_column_set_resizable (col, TRUE);
 	gtk_tree_view_column_pack_start (col, cell, FALSE);
diff --git a/plugins/snippets-manager/snippets-editor.ui b/plugins/snippets-manager/snippets-editor.ui
index 68d3813..807d97c 100644
--- a/plugins/snippets-manager/snippets-editor.ui
+++ b/plugins/snippets-manager/snippets-editor.ui
@@ -62,7 +62,7 @@ The role of the name is purely informative.</property>
                               <object class="GtkImage" id="name_notify">
                                 <property name="width_request">24</property>
                                 <property name="visible">True</property>
-                                <property name="tooltip_markup">&lt;b&gt;Warning:&lt;/b&gt; You should choose a name for the snippet!</property>
+                                <property name="tooltip_markup" translatable="yes">&lt;b&gt;Warning:&lt;/b&gt; You should choose a name for the snippet!</property>
                                 <property name="stock">gtk-dialog-warning</property>
                               </object>
                               <packing>
@@ -107,7 +107,7 @@ The role of the name is purely informative.</property>
                             <child>
                               <object class="GtkImage" id="group_notify">
                                 <property name="width_request">24</property>
-                                <property name="tooltip_markup">&lt;b&gt;Error:&lt;/b&gt; The snippet must belong to a group!</property>
+                                <property name="tooltip_markup" translatable="yes">&lt;b&gt;Error:&lt;/b&gt; The snippet must belong to a group!</property>
                                 <property name="stock">gtk-dialog-error</property>
                               </object>
                               <packing>
@@ -153,7 +153,7 @@ The role of the name is purely informative.</property>
                                 <property name="visible">True</property>
                                 <property name="sensitive">False</property>
                                 <property name="can_focus">True</property>
-                                <property name="tooltip_markup">The trigger key is used for fast insertion of the snippet. Type the trigger key in the editor, followed by the "Fast Insert" shortcut to insert a snippet.
+                                <property name="tooltip_markup" translatable="yes">The trigger key is used for fast insertion of the snippet. Type the trigger key in the editor, followed by the "Fast Insert" shortcut to insert a snippet.
 &lt;b&gt;Warning: Must be unique per language. &lt;/b&gt;</property>
                                 <property name="invisible_char">&#x25CF;</property>
                               </object>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index abafb6b..82ea7f8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -198,6 +198,7 @@ plugins/search/search-replace.c
 plugins/search/search-replace_backend.c
 plugins/snippets-manager/plugin.c
 plugins/snippets-manager/snippets-browser.c
+plugins/snippets-manager/snippets-editor.c
 [type: gettext/glade]plugins/snippets-manager/snippets-editor.ui
 [type: gettext/glade]plugins/snippets-manager/snippets-manager-preferences.ui
 plugins/snippets-manager/snippets-import-export.c



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