How to add localized resouce string manually

  • Thread starter Thread starter George Yuen
  • Start date Start date
G

George Yuen

I have a problem adding localized string.
I'm doing multilingual C# application development using VisualStudio.NET.
There are many messages
which are generated during runing time, e.g.:
txtStatusMsg = "Server Error";
I want to make use of resource file to store all such strings for differnet
languages, so I edit the resource file and add such strings manually.
However, once I change any layout of the windows form, the resource file is
regenerated automatically and what I entered is disappeared.
Can anyone suggest what should I do? Thanks.

Cheers,
George
 
Hi

please have a look at my article at CodeProject :
http://www.codeproject.com/useritems/globitfrmwk.asp
have a look at code ....
there are also some other articles on localization
i have also developed somewhat better framework for
localization, if you re interested, pls just drop me a
mail.

there are also possibilites of getting localized string
like this :

str = GetLabel("lblLabelName"), the procedure would look
in database or resource files for provided name and return
localized string

hope it was helpful
 
Back
Top