Browse Source

localize EventCreationCompletionData item text

pull/416/merge
Siegfried Pammer 11 years ago
parent
commit
3ed88db4d9
  1. 3
      data/resources/StringResources.resx
  2. 10
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs

3
data/resources/StringResources.resx

@ -8350,4 +8350,7 @@ Press Esc to cancel this operation.</value> @@ -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>&lt;Create ${HandlerName}&gt;</value>
</data>
</root>

10
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EventCreationCompletionData.cs

@ -19,15 +19,15 @@ @@ -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 @@ -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;
}

Loading…
Cancel
Save