[mono/monodevelop] [2 commits] a0c72907: [Branding] Brand user-visible strings.

"Lluis Sanchez ([email protected])" <[email protected]> Tue, 5 Nov 2013 14:27:10 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <0000014228a8f37d-4243e3f4-a17d-4001-a7b7-ca662e9db6f5-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/01f2eba0da64...bf8fd98ff7fa

   Commit: a0c7290772e5c3943025cabc650eec7800a3af85
   Author: Therzok <[email protected]> (Therzok)
     Date: 2013-11-04 12:24:10 GMT
      URL: https://github.com/mono/monodevelop/commit/a0c7290772e5c3943025cabc650eec7800a3af85

[Branding] Brand user-visible strings.

Changed paths:
  M main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
  M main/src/core/MonoDevelop.Core/MonoDevelop.Core.Setup/AddinSetupService.cs
  M main/src/core/MonoDevelop.Core/MonoDevelop.Projects/BuildTool.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IdeFileSystemExtensionExtension.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/FeedbackService.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
  M main/src/tools/mdtool/src/mdtool.cs

Modified: main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
===================================================================
@@ -42,7 +42,7 @@ class GettextTool: IApplication
 		
 		public int Run (string[] arguments)
 		{
-			Console.WriteLine ("MonoDevelop Gettext Update Tool");
+			Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Gettext Update Tool"));
 			foreach (string s in arguments)
 				ReadArgument (s);
 			

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core.Setup/AddinSetupService.cs
===================================================================
@@ -47,7 +47,7 @@ public void RegisterMainRepository (UpdateLevel level, bool enable)
 			string url = GetMainRepositoryUrl (level);
 			if (!Repositories.ContainsRepository (url)) {
 				var rep = Repositories.RegisterRepository (null, url, false);
-				rep.Name = "MonoDevelop Add-in Repository";
+				rep.Name = BrandingService.BrandApplicationName ("MonoDevelop Add-in Repository");
 				if (level != UpdateLevel.Stable)
 					rep.Name += " (" + level + " channel)";
 				if (!enable)

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Projects/BuildTool.cs
===================================================================
@@ -48,7 +48,7 @@ internal class BuildTool : IApplication
 		
 		public int Run (string[] arguments)
 		{
-			Console.WriteLine ("MonoDevelop Build Tool");
+			Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Build Tool"));
 			foreach (string s in arguments)
 				ReadArgument (s);
 			

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IdeFileSystemExtensionExtension.cs
===================================================================
@@ -63,7 +63,7 @@ public override void RequestFileEdit (IEnumerable<FilePath> files)
 				return;
 
 			var btn = new AlertButton (GettextCatalog.GetString ("Make Writable"));
-			var res = MessageService.AskQuestion (error, GettextCatalog.GetString ("Would you like MonoDevelop to attempt to make the file writable and try again?"), btn, AlertButton.Cancel);
+			var res = MessageService.AskQuestion (error, GettextCatalog.GetString ("Would you like {0} to attempt to make the file writable and try again?", BrandingService.ApplicationName), btn, AlertButton.Cancel);
 			if (res == AlertButton.Cancel)
 				throw new UserException (error) { AlreadyReportedToUser = true };
 

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/FeedbackService.cs
===================================================================
@@ -97,7 +97,7 @@ public static void SendFeedback (string email, string body)
 			PropertyService.Set ("MonoDevelop.Feedback.Email", email);
 			PropertyService.SaveProperties ();
 			
-			string header = "MonoDevelop: " + BuildInfo.VersionLabel + "\n";
+			string header = BrandingService.BrandApplicationName ("MonoDevelop: ") + BuildInfo.VersionLabel + "\n";
 			
 			Type t = Type.GetType ("Mono.Runtime");
 			if (t != null) {

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
===================================================================
@@ -455,7 +455,7 @@ static void ValidateGtkTheme (ref string theme)
 					"set it as your default in the GTK+ Theme Selector or MonoDevelop Preferences.";
 			}
 
-			MessageService.GenericAlert (Gtk.Stock.DialogWarning, message, detail, AlertButton.Ok);
+			MessageService.GenericAlert (Gtk.Stock.DialogWarning, message, BrandingService.BrandApplicationName (detail), AlertButton.Ok);
 
 			theme = fallback ?? themes.FirstOrDefault () ?? theme;
 		}

Modified: main/src/tools/mdtool/src/mdtool.cs
===================================================================
@@ -154,7 +154,7 @@ static void ShowHelp (bool shortHelp)
 			return;
 		}
 		Console.WriteLine ();
-		Console.WriteLine ("MonoDevelop Tool Runner");
+		Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Tool Runner"));
 		Console.WriteLine ();
 		Console.WriteLine ("Usage: mdtool [options] <tool> ... : Runs a tool.");
 		Console.WriteLine ("       mdtool setup ... : Runs the setup utility.");
@@ -169,7 +169,7 @@ static void ShowHelp (bool shortHelp)
 	
 	static int RunSetup (string[] args)
 	{
-		Console.WriteLine ("MonoDevelop Add-in Setup Utility");
+		Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Add-in Setup Utility"));
 		bool verbose = false;
 		foreach (string a in args)
 			if (a == "-v")

   Commit: bf8fd98ff7fa23da7160e5b7c69d90ec168610a3
   Author: Lluis Sanchez <[email protected]> (slluis)
     Date: 2013-11-05 14:25:05 GMT
      URL: https://github.com/mono/monodevelop/commit/bf8fd98ff7fa23da7160e5b7c69d90ec168610a3

Merge pull request #428 from mono/brand

[Branding] Brand user-visible strings.

Changed paths:
  M main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
  M main/src/core/MonoDevelop.Core/MonoDevelop.Core.Setup/AddinSetupService.cs
  M main/src/core/MonoDevelop.Core/MonoDevelop.Projects/BuildTool.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IdeFileSystemExtensionExtension.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/FeedbackService.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
  M main/src/tools/mdtool/src/mdtool.cs

Modified: main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/GettextTool.cs
===================================================================
@@ -42,7 +42,7 @@ class GettextTool: IApplication
 		
 		public int Run (string[] arguments)
 		{
-			Console.WriteLine ("MonoDevelop Gettext Update Tool");
+			Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Gettext Update Tool"));
 			foreach (string s in arguments)
 				ReadArgument (s);
 			

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core.Setup/AddinSetupService.cs
===================================================================
@@ -47,7 +47,7 @@ public void RegisterMainRepository (UpdateLevel level, bool enable)
 			string url = GetMainRepositoryUrl (level);
 			if (!Repositories.ContainsRepository (url)) {
 				var rep = Repositories.RegisterRepository (null, url, false);
-				rep.Name = "MonoDevelop Add-in Repository";
+				rep.Name = BrandingService.BrandApplicationName ("MonoDevelop Add-in Repository");
 				if (level != UpdateLevel.Stable)
 					rep.Name += " (" + level + " channel)";
 				if (!enable)

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Projects/BuildTool.cs
===================================================================
@@ -48,7 +48,7 @@ internal class BuildTool : IApplication
 		
 		public int Run (string[] arguments)
 		{
-			Console.WriteLine ("MonoDevelop Build Tool");
+			Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Build Tool"));
 			foreach (string s in arguments)
 				ReadArgument (s);
 			

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IdeFileSystemExtensionExtension.cs
===================================================================
@@ -63,7 +63,7 @@ public override void RequestFileEdit (IEnumerable<FilePath> files)
 				return;
 
 			var btn = new AlertButton (GettextCatalog.GetString ("Make Writable"));
-			var res = MessageService.AskQuestion (error, GettextCatalog.GetString ("Would you like MonoDevelop to attempt to make the file writable and try again?"), btn, AlertButton.Cancel);
+			var res = MessageService.AskQuestion (error, GettextCatalog.GetString ("Would you like {0} to attempt to make the file writable and try again?", BrandingService.ApplicationName), btn, AlertButton.Cancel);
 			if (res == AlertButton.Cancel)
 				throw new UserException (error) { AlreadyReportedToUser = true };
 

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/FeedbackService.cs
===================================================================
@@ -97,7 +97,7 @@ public static void SendFeedback (string email, string body)
 			PropertyService.Set ("MonoDevelop.Feedback.Email", email);
 			PropertyService.SaveProperties ();
 			
-			string header = "MonoDevelop: " + BuildInfo.VersionLabel + "\n";
+			string header = BrandingService.BrandApplicationName ("MonoDevelop: ") + BuildInfo.VersionLabel + "\n";
 			
 			Type t = Type.GetType ("Mono.Runtime");
 			if (t != null) {

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
===================================================================
@@ -455,7 +455,7 @@ static void ValidateGtkTheme (ref string theme)
 					"set it as your default in the GTK+ Theme Selector or MonoDevelop Preferences.";
 			}
 
-			MessageService.GenericAlert (Gtk.Stock.DialogWarning, message, detail, AlertButton.Ok);
+			MessageService.GenericAlert (Gtk.Stock.DialogWarning, message, BrandingService.BrandApplicationName (detail), AlertButton.Ok);
 
 			theme = fallback ?? themes.FirstOrDefault () ?? theme;
 		}

Modified: main/src/tools/mdtool/src/mdtool.cs
===================================================================
@@ -154,7 +154,7 @@ static void ShowHelp (bool shortHelp)
 			return;
 		}
 		Console.WriteLine ();
-		Console.WriteLine ("MonoDevelop Tool Runner");
+		Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Tool Runner"));
 		Console.WriteLine ();
 		Console.WriteLine ("Usage: mdtool [options] <tool> ... : Runs a tool.");
 		Console.WriteLine ("       mdtool setup ... : Runs the setup utility.");
@@ -169,7 +169,7 @@ static void ShowHelp (bool shortHelp)
 	
 	static int RunSetup (string[] args)
 	{
-		Console.WriteLine ("MonoDevelop Add-in Setup Utility");
+		Console.WriteLine (BrandingService.BrandApplicationName ("MonoDevelop Add-in Setup Utility"));
 		bool verbose = false;
 		foreach (string a in args)
 			if (a == "-v")


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches