Looking for a tool to manage strings...

S

Sam Carleton

I am now many months into a project where the powers that be decided to
simply throw static strings in the .Net code. Does anyone know of a
tool that will pull out the strings, and put them into some type of
resource file and ultimately assist us in managing all the strings?
 
G

Guest

I am now many months into a project where the powers that be decided to
simply throw static strings in the .Net code. Does anyone know of a
tool that will pull out the strings, and put them into some type of
resource file and ultimately assist us in managing all the strings?

I don't know of any such tool. Why do the strings in your project need
managing? Maybe your objectives can be met by something other than
centralization.
 
S

Sam Carleton

AMercer said:
I don't know of any such tool. Why do the strings in your project need
managing? Maybe your objectives can be met by something other than
centralization.

We have static strings all over the place that are going to be
displayed. It would be nice if they where centralized so that the
documentation department can get a simple list of all the string and
word smith them for development. It would also making going
international much easier, too.
 
J

John Timney \(MVP\)

Wouldn't the ideal place for these be the app.config file, or the web.config
depending on the project type. If your using a lot of strings you should
devise a naming convention for them. I doubt though that your going to find
a tool that will help you pull them out of your code.

Regards

John Timney (MVP)
 
K

Kevin Spencer

The problem with your request is that you haven't defined what "all over the
place" means. You're looking for a tool that does exactly what? You have
stated that "the powers that be decided to simply throw static strings in
the .Net code." That doesn't tell us much. A tool to extract static strings
from code and put them into resource files would have to know how to
identify what these "static strings" you're talking about are, what
identifies these from any other strings defined in your code. And I don't
think you're going to find one ready-made.

I would suggest that you figure out for yourself how an application could
identify all these "static strings" and write your own solution, or do the
work by hand if you figure it will take more time to automate (since this is
a one-time change).

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.
 
L

lord.zoltar

Sam said:
I am now many months into a project where the powers that be decided to
simply throw static strings in the .Net code. Does anyone know of a
tool that will pull out the strings, and put them into some type of
resource file and ultimately assist us in managing all the strings?

Would adding them to the project resources help? Then you could use
them as: myProject.Resources.SomeString
I don't know of a tool that can do this automatically though... I'm not
even sure how it would work. Where would it find the strings to "pull
out" and how would it identify them?
 

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