[gitg/vala] Marked translatable strings in dash plugin



commit c0ca6cca328ff051bdca5077051395914735a3ea
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Jul 17 11:07:29 2012 +0200

    Marked translatable strings in dash plugin

 plugins/dash/gitg-dash-navigation.vala |   11 +++++++----
 plugins/dash/gitg-dash.vala            |   10 +++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/plugins/dash/gitg-dash-navigation.vala b/plugins/dash/gitg-dash-navigation.vala
index e0be76d..3bc42f5 100644
--- a/plugins/dash/gitg-dash-navigation.vala
+++ b/plugins/dash/gitg-dash-navigation.vala
@@ -21,6 +21,9 @@ namespace GitgDash
 {
 	private class Navigation : Object, GitgExt.Navigation
 	{
+		// Do this to pull in config.h before glib.h (for gettext...)
+		private const string version = Gitg.Config.VERSION;
+
 		public GitgExt.Application? application { owned get; construct set; }
 
 		public signal void show_open();
@@ -35,12 +38,12 @@ namespace GitgDash
 
 		public void populate(GitgExt.NavigationTreeModel model)
 		{
-			model.begin_header("Repository", null)
-			     .append_default("Open", "document-open-symbolic", (c) => { show_open(); })
-			     .append("Create", "list-add-symbolic", (c) => { show_create(); })
+			model.begin_header(_("Repository"), null)
+			     .append_default(_("Open"), "document-open-symbolic", (c) => { show_open(); })
+			     .append(_("Create"), "list-add-symbolic", (c) => { show_create(); })
 			     .end_header();
 
-			model.begin_header("Recent", null);
+			model.begin_header(_("Recent"), null);
 
 			var manager = Gtk.RecentManager.get_default();
 			var list = new List<Gtk.RecentInfo>();
diff --git a/plugins/dash/gitg-dash.vala b/plugins/dash/gitg-dash.vala
index c20dcb4..c79db7e 100644
--- a/plugins/dash/gitg-dash.vala
+++ b/plugins/dash/gitg-dash.vala
@@ -19,11 +19,11 @@
 
 namespace GitgDash
 {
-	// Do this to pull in config.h before glib.h (for gettext...)
-	private const string version = Gitg.Config.VERSION;
-
 	public class View : Object
 	{
+		// Do this to pull in config.h before glib.h (for gettext...)
+		private const string version = Gitg.Config.VERSION;
+
 		public GitgExt.Application? application { owned get; construct set; }
 		private Gtk.Notebook d_main;
 
@@ -66,7 +66,7 @@ namespace GitgDash
 
 		public string display_name
 		{
-			owned get { return "Dashboard"; }
+			owned get { return _("Dashboard"); }
 		}
 
 		public Icon? icon
@@ -300,7 +300,7 @@ namespace GitgDash
 [ModuleInit]
 public void peas_register_types(TypeModule module)
 {
-	Peas.ObjectModule mod = module as Peas.ObjectModule;
+	//Peas.ObjectModule mod = module as Peas.ObjectModule;
 
 	//mod.register_extension_type(typeof(GitgExt.View),
 	//                            typeof(GitgDash.View));



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