Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Bug - merge: HeaderText="name" converts into HeaderText= Text="Name""name"

Using the new merge feature (really love how you integrated the icon shortcut into the the main window of the tool), I experienced something really odd:

HeaderText="name" converts into HeaderText= Text="Name""name"
I'm using ASP.NET and scanning controls. One control I'm using is GridView. Each column has it's own tag, containing "HeaderText" attribute to be localized.

Maybe by mistake, I've used two variations of the same string:
a) "Name"
b) "name"

I merge a and b, leaving a as "target". This is at least what I want. This is what happens:

Before merge, it looks like this (2 different pages on my site):
HeaderText="name"
HeaderText="Name"

After merge, it looks like this:
HeaderText= Text="Name""name"
HeaderText= Text="Name""Name"

Just to be clear, I expected:
HeaderText="Name"
HeaderText="Name"

It's pretty obvious to me, that it's inserting some text, without removing the old. Underlined above = inserted text, which seems to have accurate value, but it's not using same attribute name (Text vs HeaderText - and "Text" by itself won't work).

Text="name" converts into Text= Text="Name""name"
So you would think it's related to "HeaderText" not using "Text" as attribute? Well, when I do the same thing for Literal control and using Text attribute, it gives me kind of the same result.

Before merge, it looks like this (2 different pages on my site):
Text="name"
Text="Name"

After merge, it looks like this:
Text= Text="Name""name"
Text= Text="Name""Name"

And again, I expected:
Text="Name"
Text="Name"

Might be 2 bugs?
Above is telling me this might be 2 bugs when merging:

  1. Unable to handle attributes not called "Text" (e.g. "HeaderText") in ASP.NET application
  2. Unable to replace attributes and value in ASP.NET applications



Yours faithfully,
Nick Niebling