How to add localized resouce string manually

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
 
K

Konrad R.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top