diff options
author | F. Phoenix <fphoenix@email.com> | 2016-11-22 14:46:55 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2017-01-12 17:51:18 +0300 |
commit | 8bccbeb3e90485804f226db2ea17fa396bf689d4 (patch) | |
tree | 18ce4c961da434809de7a00504eb0829f531c099 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands | |
parent | 90d1f57cf4c9d4daf8f5943fba1a373548c37a68 (diff) |
[i18n] Fixed missing translation support for main menu items
• View → Code/Design/Debug/Test Layouts
These items were translatable at all, but not detectable by MonoDevelop Gettext scanner. So I added dummy TranslateString method as it made in some other places of MonoDevelop source code (see C# rules for RegexScanner in MonoDevelop.Gettext.addin.xml).
• View → Editor Columns
• Search → Bookmarks / Go To
Missing translatable _label attributes in xml-file.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs index 633cd3ff47..3fae99b2eb 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs @@ -141,10 +141,10 @@ namespace MonoDevelop.Ide.Commands static LayoutListHandler () { NameMapping = new Dictionary<string, string> (); - NameMapping ["Solution"] = "Code"; - NameMapping ["Visual Design"] = "Design"; - NameMapping ["Debug"] = "Debug"; - NameMapping ["Unit Testing"] = "Test"; + NameMapping ["Solution"] = GettextCatalog.GetString ("Code"); + NameMapping ["Visual Design"] = GettextCatalog.GetString ("Design"); + NameMapping ["Debug"] = GettextCatalog.GetString ("Debug"); + NameMapping ["Unit Testing"] = GettextCatalog.GetString ("Test"); } protected override void Update (CommandArrayInfo info) @@ -153,7 +153,7 @@ namespace MonoDevelop.Ide.Commands foreach (var name in IdeApp.Workbench.Layouts) { if (!NameMapping.TryGetValue (name, out text)) text = name; - CommandInfo item = new CommandInfo(GettextCatalog.GetString (text)); + CommandInfo item = new CommandInfo (text); item.Checked = IdeApp.Workbench.CurrentLayout == name; item.Description = GettextCatalog.GetString ("Switch to layout '{0}'", name); info.Add (item, name); |