Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource entries are deleted. How to avoid?

Status
Not open for further replies.

russland

Programmer
Jan 9, 2003
315
CH
Hi

Every controls in my application is translated into the current Culture (UICulture). Now, in a MessageBox class I want to place text to that would be translated programatically by a ResourceManager instance.
e.g. rm.GetString("MyStringToTranslate").

Now, that works fine until i do edit a tooltip text or something similar that would write translation text into the resource files. Because at that point of time, my (by hand) inserted values would be overwritten (well, i must admit VisualStudio warns me about that).

Is there a way to prevent this overwriting?

any hint is appreciated.
 
In your form designer, explicity set the culture in it's properties to something like en-US, and then your target culture (something like fr-CA).

Visual Studio will then create the culture directory structure and .resx files for you. You'll still need to enter the translated values in both .resx files, but at least the structure will be in place for you.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top