ASP.Net页面本地化

编程入门 行业动态 更新时间:2024-10-24 03:22:32
本文介绍了ASP.Net页面本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 自从我上次玩" asp以来已经有一段时间了.关于本地化,我有一个简单的问题. 我有几个页面本身包含一些文本,并使用不同的HTML标记正确设置了格式. 示例:

Hi all, it''s been a while since I for the last time "played" with asp. 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>

您可以使用以下信息: stackoverflow/questions/7505480/techniques-for-localizing-in- asp-net [ ^ ] 本地化文本. 最好的问候 Espen Harlinn

and you can use the info from this post: stackoverflow/questions/7505480/techniques-for-localizing-in-asp-net[^] to localize the text. Best regards Espen Harlinn

从这里开始: msdn.microsoft /en-us/library/c6zyy3s9.aspx [ ^ ].
—SA
Start from here: msdn.microsoft/en-us/library/c6zyy3s9.aspx[^].
—SA

更多推荐

ASP.Net页面本地化

本文发布于:2023-11-15 06:34:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1592007.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   ASP   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!