473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Finding unused strings in all .resx of a solution

Hi all!
I would like to check if there are some resx keys, which will not be
used in the source code. Is there a plugin or another possibility to
evaluate this issue?

Regards
Marcel
Mar 6 '08 #1
2 2860
"schaf" <sc***@2wire.chwrote in message
news:09**********************************@59g2000h sb.googlegroups.com...
I would like to check if there are some resx keys, which will not be
used in the source code. Is there a plugin or another possibility to
evaluate this issue?
I don't think that a plugin would be reliable to determine the keys that
are used by a general arbitrary program. Imagine that your resx contains a
key named "string123" and your code does:

int i=123;
key ="string"+i;
x = GetGlobalResourceObject("WebResource",key);

This uses your "string123", but how would an automated tool conclude this
from the source code? What if the "i" variable above is a computed value
that depends on inputs provided at runtime?

Mar 6 '08 #2
On 6 Mrz., 11:43, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:
"schaf" <sc...@2wire.chwrote in message

news:09**********************************@59g2000h sb.googlegroups.com...
I would like to check if there are some resx keys, which will not be
used in the source code. Is there a plugin or another possibility to
evaluate this issue?

* *I don't think that a plugin would be reliable to determine the keysthat
are used by a general arbitrary program. Imagine that your resx contains a
key named "string123" and your code does:

int i=123;
key ="string"+i;
x = GetGlobalResourceObject("WebResource",key);

* *This uses your "string123", but how would an automated tool conclude this
from the source code? What if the "i" variable above is a computed value
that depends on inputs provided at runtime?
No I would like to do just a short check if all my keys in the resx
are also used in the code. I do not compose keys so maybe this check
can be done ?
Mar 6 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: pachyphloia | last post by:
hi all, how to read regular strings from a resx file? ResourceManager.GetString() returns @"first line\nsecond line" although "first line\nsecond line" is in a resx file. or is any string in a...
0
by: Kaare Rasmussen | last post by:
I'm looking for an easy way to find unused modules in a perl program. I can do it by hand, but it's slow, error prone and boring. The task is not made easier by the fact that some modules are...
0
by: Robert Misiak | last post by:
Hi all- I'm trying to add Windows 98/ME support to an app that previously only supported Windows 2000+. My test box is a running 98 SE. I have a number of localized forms (translated for...
0
by: Robert W. | last post by:
I have a 'frmMain' that I would like to add localization capabilities to. For now I'm just going to focus on English and Spanish. So I got Visual Studio to automatically create these 3 files: ...
4
by: Phil Da Lick! | last post by:
Hello, Got strings.resx included in my assmebly as the default language neutral collection. ResourceManager res=new ResourceManager("strings", Assembly.GetExecutingAssembly()); string...
3
by: Servé La | last post by:
We have an aspnet project where 2 people are working on and we have put the source files into subversion. Thinking that they were not crucial for a project, we did not put in the resx files. But...
0
by: Johnny Kimble | last post by:
Hi all, I'm in a situation where I'd like to be able to programatically distiguish a standard resx file containing only strings from a WinForms resx file, that contains both strings and...
7
by: nws_reader | last post by:
I have a web service that needs to return a particular string for one of its web methods. I would like to manage the strings in a resource file. I went through a lot of the help provided on the...
4
by: Artie | last post by:
Hi, I've inherited an app that currently reads in hard-coded strings (like error messages) from app.config. It has been suggested that these would be better-placed in a .resx file. Is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.