views:

86

answers:

2

Hi,

We have a silverlight project; all the text messages are located in a .resx resource file. Since the project has a long history and there were a lot of changes, many strings are orphaned (no longer in use).

Now we are going to translate the project into several languages and I do not want to waste the money on unused text translation.

Is there any simple way to locate and remove unused string resources?

Thanks!

+1  A: 

There's a script that will do this for you.

Robert Greiner
thanks for the link, however that script does not work properly. Is there any other solution?
Vitas
interesting, what error are you getting?
Robert Greiner
+1  A: 

I am the author of the script. As mentioned, if you're using C# you will need to edit the call to FINDSTR in the batch file to match the way you are accessing the resources. The script will create an output text file telling you which resources it thinks are not being used, but will not automatically remove the resources from you. Also, it will not work properly if the resources contain Unicode characters, due to a limitation of FINDSTR.

MD2002