如何用输入字段实现html页面的全球化和本地化 [英] how to implement globalisation and localisation of html page with input field

查看:60
本文介绍了如何用输入字段实现html页面的全球化和本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的网站有jquery菜单,asp:标签,图片,html控件如

Hi,

I have a website with jquery menu ,asp:label ,images ,html control like

<input id="submit" name="submit"  type="button"   runat="server" value="Submit"   />



也有一些div内容为


also some div with content as

<div> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,  </div>





等,我有100页以上的网站,我想要展示这五个不同语言的不同页面



我应该再次创建五个不同的页面,或者有一些技术可以用不同的语言转换这个页面。



我不想使用谷歌翻译。我想使用我自己的文字和短语,我已经由客户提供给我。



我在本地化方面做了一些RND,但问题是只有asp.net控件才能在资源文件中看到。在资源文件中看不到html控件和输入元素。



我希望我的网站应该与下面的网站一样工作

http://www.moravia.com/en/services/translation-localization/software-localization/ [ ^ ]

请帮忙,给我一个很好的伎俩。



etc ,i have 100 pages website like above,I want to show this different pages in five different language

should i create five different page again ,or there some Technic to convert this page in different language.

I dont want to use google translator. i want to use my own text and phrase which i have are provided to me by client.

I had done some RND on localisation ,but the problem is that only asp.net control is able to seen in resources file . html control and input element are not seen in resource file.

I want my site should work same as the below website works
http://www.moravia.com/en/services/translation-localization/software-localization/[^]
Please help ,suggest me a good trick .

推荐答案

在发布问题之前你可以做一些谷歌研究......



看看这个: ASP.NET本地化(快速参考) [ ^ ]



或者这个: ASP.NET全球化和本地化 [ ^ ]
You could have done some google research before posting a question...

Have a look at this: ASP.NET Localization (Quick Reference)[^]

or this: ASP.NET Globalization and Localization[^]


那里不是奇迹。是的,HTML控件无法使用这些多元文化资源。 HTML太静态了,无法实现很大的灵活性。您可以使用Javascript生成动态HTML内容,但是您应该创建具有相同资源的许多版本的完整并行机制。即使你做了这一切,关键的缺点是这是客户端,这将变得非常沉重。不过,这是可能的。为什么这么做呢?



根据您的问题标签,您已经在使用ASP.NET了。如果不使用这个事实而不是在服务器端使用.NET全球化和本地化,而不是使用HTML方法,那将是愚蠢的。



我会补充说你甚至是你的提到Google翻译看起来很荒谬。首先,全球化和本地化概念并不意味着自动文本翻译。它只是意味着您为许多不同的文化预先创建了资源,这将是唯一合理的方式。谷歌翻译只是一个不相关的主题。更重要的是,世界上任何自动翻译的质量甚至不允许谈论内容的翻译;充其量,它只是可以帮助一个人理解一些外语。一些有趣或荒谬的自动翻译案例是无穷无尽的笑话来源。



-SA
There is no such thing as miracle. Yes, HTML controls cannot use those multicultural resources. HTML is way too static to implement much flexibility. You could use Javascript to generate dynamic HTML content, but then you should create whole parallel mechanism with many versions of the same resources. Even if you do all that, the critical drawback is that this is the client side, which is going to become quite heavy. Still, this is possible. By why doing all that?

According to your question tags, you are using ASP.NET already. It would be silly not using this fact and not using .NET globalization and localization on the server side, instead of your HTML approach.

I would add that you even your mentioning of Google translate looks ridiculous. First of all "globalization and localization" notions do not imply automatic text translation. It just means that you have pre-created resources for a number of different cultures, and this would be the only reasonable way. Google translation is simply unrelated topic. More importantly, the quality of any automatic translation in the world does not allow even to talk about translation of the content; at best, it simply can help a person to understand some phrased in foreign language. Some funny or ridiculous cases of automatic translation is the endless source of jokes.

—SA


这篇关于如何用输入字段实现html页面的全球化和本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆