ASP.Net页面本地化 [英] ASP.Net pages localization
问题描述
大家好,
自从我上次玩" asp.net以来已经有一段时间了.关于本地化,我有一个简单的问题.
我有几个页面本身包含一些文本,并使用不同的HTML标记正确设置了格式.
示例:
Hi all,
it''s been a while since I for the last time "played" with asp.net. I have one simple question about the localization.
I have a couple of pages containing some text in the page itself, properly formatted with different HTML tags.
Example:
<h2 class="title">
MITA – ANTI SKID DEVICE FOR TYRES</h2>
现在,一旦尝试为该页面生成本地资源,就不会在resx文件中获取字符串,我想是因为它们不是服务器端控件.
是否有任何技巧或是否有一种好的做法可以对不属于服务器端控件一部分的文本进行本地化?
感谢您的任何建议.
干杯!
Now, once I try to generate my local resources for that page, I do not get the strings inside the resx file and I suppose because they are not server side controls.
Is there any trick or is there a good practice in order to localize the text that is not part of server side controls?
Thanks for any suggestion.
Cheers!
推荐答案
我还没有尝试过进行本地化,但是您将获得服务器端元素
I haven''t tried this for localization, but you will get a server side element
<h2 id="headingMita" class="title" runat="server">
MITA – ANTI SKID DEVICE FOR TYRES
</h2>
您可以使用以下信息:
http://stackoverflow.com/questions/7505480/techniques-for-localizing-in- asp-net [ ^ ]
本地化文本.
最好的问候
Espen Harlinn
and you can use the info from this post:
http://stackoverflow.com/questions/7505480/techniques-for-localizing-in-asp-net[^]
to localize the text.
Best regards
Espen Harlinn
从这里开始: http://msdn.microsoft .com/en-us/library/c6zyy3s9.aspx [ ^ ].
—SA
Start from here: http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx[^].
—SA
这篇关于ASP.Net页面本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!