开发者

Reading label text from .resx files in ASP.NET

I am trying to find a way of looping through a开发者_如何学JAVA .resx file that contains English words and replacing them with the translated equivalent.

I have used a ResXResourceReader to read the file, can anyone help please


You can directly get the text by specify key

String Text = GetLocalResourceObject("yourkey").ToString();


Could you specify from which side do you want to do it? I mean, if it's just for a developer, that can see the code, you can do it easily changing the .resx files, but if you want to design an interface so a user can translate without seeing any code, then I'd do it with LINQ to XML. I can show you if u need examples but answer first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜