Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2018-11-06 18:15:17 +0300
committertherzok <marius.ungureanu@xamarin.com>2018-11-12 22:33:18 +0300
commit06d7316b9a169b59462f05602415ff0df1f1eb10 (patch)
tree5d442311666d100f92532aba1c1f55d155ce4868 /main/src/addins/MonoDevelop.Autotools
parent59f68edbc8642a480113768c32bbae3fd8a2bcd1 (diff)
[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
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
-rw-r--r--main/src/addins/MonoDevelop.Autotools/MakefileOptionPanelWidget.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/MakefileOptionPanelWidget.cs b/main/src/addins/MonoDevelop.Autotools/MakefileOptionPanelWidget.cs
index 2b8e9474df..894cc96443 100644
--- a/main/src/addins/MonoDevelop.Autotools/MakefileOptionPanelWidget.cs
+++ b/main/src/addins/MonoDevelop.Autotools/MakefileOptionPanelWidget.cs
@@ -354,7 +354,7 @@ namespace MonoDevelop.Autotools
foreach (string s in MakefileData.CompilerMessageRegex.Keys)
comboMessageType.AppendText (s);
- comboMessageType.AppendText ("Custom");
+ comboMessageType.AppendText (GettextCatalog.GetString ("Custom"));
comboMessageType.Active = 0;
}
@@ -720,7 +720,7 @@ namespace MonoDevelop.Autotools
List<string> list = new List<string> (vars);
list.Sort ();
- comboFilesVar.AppendText ("(None)");
+ comboFilesVar.AppendText (GettextCatalog.GetString ("(None)"));
foreach (string item in list)
combos [0].AppendText (item);