Find string constant (and enventually replace with resources)

T

timor.super

Hi group,

in my C# program, I have code like this :

ListItem item = new ListItem("Show All", string.Empty);
.....
<asp:Literal ID="Literal14" runat="server" Text="Something" />
....

What I would like to do is (in a translation purpose) to replace
constant string by resource, to optain something like this :

ListItem item = new ListItem(Resources.Messages.ShowAll,
string.Empty);
....
<asp:Literal ID="Literal14" runat="server" Text="<%$
Resources:Messages, Something %>" />
....

What I'm looking for could be a plugin (refactor, or something else)
that :
- can help me to find such string in my code (I have many many files,
and ctrl+f " can be long and not pertinent)
- can eventually help to replace this string with a resources one

Do you know something that can help me ?

Thanks for your help,

S.
 
T

timor.super

Hi Martin,

I'm doing something like this, but what I want is a tool that help me
to find the string that are already written in my code ... for future
string, I will direct work with translation.
Of course, as usual, code has began before thinking of all...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top