From 06d7316b9a169b59462f05602415ff0df1f1eb10 Mon Sep 17 00:00:00 2001 From: therzok Date: Tue, 6 Nov 2018 10:15:17 -0500 Subject: [Dev] Add analyzer which picks up strings which should be localized Also fix up instances of said strings throughout the codebase. First version is really robust: * Only offers GettextCatalog.GetString as an option * Only works on Gtk.Widget and special cased functions Future versions will provide: a) Configuration of catalog via attribute b) Cocoa/Atk support c) Detection of string.Format patterns. Fixes VSTS #683875 - Enable MD specific analyzers in the repository and build --- .../Gui/MonoDevelop.Deployment.Linux.DesktopPanelWidget.cs | 1 - .../Gui/MonoDevelop.Deployment.Gui.DeployDialog.cs | 4 ---- 2 files changed, 5 deletions(-) (limited to 'main/src/addins/Deployment') diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/Gui/MonoDevelop.Deployment.Linux.DesktopPanelWidget.cs b/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/Gui/MonoDevelop.Deployment.Linux.DesktopPanelWidget.cs index 84c2f49d8d..f1b850eb01 100644 --- a/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/Gui/MonoDevelop.Deployment.Linux.DesktopPanelWidget.cs +++ b/main/src/addins/Deployment/MonoDevelop.Deployment.Linux/Gui/MonoDevelop.Deployment.Linux.DesktopPanelWidget.cs @@ -26,7 +26,6 @@ namespace MonoDevelop.Deployment.Linux this.label6 = new global::Gtk.Label (); this.label6.CanFocus = true; this.label6.Name = "label6"; - this.label6.LabelProp = "page1"; this.notebook2.SetTabLabel (w1, this.label6); this.label6.ShowAll (); this.Add (this.notebook2); diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/Gui/MonoDevelop.Deployment.Gui.DeployDialog.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/Gui/MonoDevelop.Deployment.Gui.DeployDialog.cs index 470a2685c8..3ddd74709a 100644 --- a/main/src/addins/Deployment/MonoDevelop.Deployment/Gui/MonoDevelop.Deployment.Gui.DeployDialog.cs +++ b/main/src/addins/Deployment/MonoDevelop.Deployment/Gui/MonoDevelop.Deployment.Gui.DeployDialog.cs @@ -203,7 +203,6 @@ namespace MonoDevelop.Deployment.Gui // Notebook tab this.label2 = new global::Gtk.Label (); this.label2.Name = "label2"; - this.label2.LabelProp = "page5"; this.notebook.SetTabLabel (this.vbox3, this.label2); this.label2.ShowAll (); // Container child notebook.Gtk.Notebook+NotebookChild @@ -252,7 +251,6 @@ namespace MonoDevelop.Deployment.Gui // Notebook tab this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; - this.label3.LabelProp = "page3"; this.notebook.SetTabLabel (this.pageSelectProject, this.label3); this.label3.ShowAll (); // Container child notebook.Gtk.Notebook+NotebookChild @@ -319,7 +317,6 @@ namespace MonoDevelop.Deployment.Gui // Notebook tab this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; - this.label6.LabelProp = "page2"; this.notebook.SetTabLabel (this.vbox4, this.label6); this.label6.ShowAll (); // Container child notebook.Gtk.Notebook+NotebookChild @@ -556,7 +553,6 @@ namespace MonoDevelop.Deployment.Gui // Notebook tab this.label8 = new global::Gtk.Label (); this.label8.Name = "label8"; - this.label8.LabelProp = "page4"; this.notebook.SetTabLabel (this.pageSave, this.label8); this.label8.ShowAll (); this.hbox1.Add (this.notebook); -- cgit v1.2.3