From 3ed88db4d9c5da912d70e3b56526d1f842c20bc3 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer <siegfriedpammer@gmail.com> Date: Fri, 10 Oct 2014 23:11:26 +0200 Subject: [PATCH] localize EventCreationCompletionData item text --- data/resources/StringResources.resx | 3 +++ .../Src/Completion/EventCreationCompletionData.cs | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/data/resources/StringResources.resx b/data/resources/StringResources.resx index 15a9c058fe..13e270d3cf 100644 --- a/data/resources/StringResources.resx +++ b/data/resources/StringResources.resx @@ -8350,4 +8350,7 @@ Press Esc to cancel this operation.</value> <data name="SharpReport.Wizard.PushModel.NoProject" xml:space="preserve"> <value>No project selected, please enter FieldNames</value> </data> + <data name="CSharpBinding.Refactoring.EventCreation.EventHandlerText" xml:space="preserve"> + <value><Create ${HandlerName}></value> + </data> </root> \ No newline at end of file diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs index 6c9af001b8..f5cbfad2df 100644 --- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs +++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs @@ -19,15 +19,15 @@ using System; using System.Linq; using System.Threading; -using System.Windows.Controls; -using ICSharpCode.SharpDevelop; -using CSharpBinding.Parser; -using CSharpBinding.Refactoring; +using ICSharpCode.Core; using ICSharpCode.NRefactory.CSharp; using ICSharpCode.NRefactory.CSharp.Refactoring; using ICSharpCode.NRefactory.CSharp.Resolver; using ICSharpCode.NRefactory.TypeSystem; +using ICSharpCode.SharpDevelop; using ICSharpCode.SharpDevelop.Editor.CodeCompletion; +using CSharpBinding.Parser; +using CSharpBinding.Refactoring; namespace CSharpBinding.Completion { @@ -46,7 +46,7 @@ namespace CSharpBinding.Completion handlerName = (evt != null ? evt.Name : "Handle"); } this.handlerName = handlerName; - this.DisplayText = "<Create " + handlerName + ">"; + this.DisplayText = StringParser.Parse("${res:CSharpBinding.Refactoring.EventCreation.EventHandlerText}", new[] { new StringTagPair("HandlerName", handlerName) }); this.delegateTypeReference = delegateType.ToTypeReference(); this.isStatic = callingMember != null && callingMember.IsStatic; }