开发者

Reading label text from .resx files in ASP.NET

开发者 https://www.devze.com 2023-03-08 02:41 出处:网络
I am trying to find a way oflooping through a开发者_如何学JAVA .resx file that contains English words and replacing them with the translated equivalent.

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

精彩评论

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