I have a C# app that uses tons of hardcoded strings. I would like to know
the best way to localize these strings so that when I use them in my
application I am assured to get the correct ones given the current locale.
For example, if my code looks like this:
string s = "somestring";
how do I go about obtaining that string from a resource (satellite
assembly?)?
I am having trouble finding the steps required to do this the right way.
Thanks!!
BT
Garrett McGowan[MSFT] - 23 Jul 2005 00:52 GMT
Hi BT. There are walkthroughs available on MSDN that demonstrate how to do
this for Visual Studio .NET 2003. It works a bit differently for Visual
Studio 2005 (beta), so please let me know if that's the one you're working
with.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbwlkwalkthroughlocalizingwindowsforms.asp
Cheers,
Garrett McGowan [MSFT Developer International]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
>From: "Bit Twiddler" <bittwiddler35@hotmail.com>
>Subject: String localization tutorial?
[quoted text clipped - 16 lines]
>Thanks!!
>BT