如何本地化jQuery UI Datepicker? [英] How do I localize the jQuery UI Datepicker?
问题描述
我真的需要一个本地化的下拉日历。英语日历不会在挪威网站上完全交流卓越; - )
I really need a localized dropdown calendar. An English calendar doesn't exactly communicate excellence on a Norwegian website ;-)
我已经尝试过 jQuery DatePicker ,他们的网站表示可以进行本地化,但这似乎不起作用。
I have experimented with the jQuery DatePicker, their website says it can be localized, however that doesn't seem to work.
我使用ASPNET.MVC,我真的想坚持一个javascript库。在这种情况下是jQuery。
I am using ASPNET.MVC, and I really want to stick to one javascript library. In this case jQuery.
ajax工具包日历是可以接受的,只要它也显示挪威名字。
The ajax toolkit calendar would be acceptable, if only it too would display Norwegian names.
更新:太棒了!我看到我缺少语言文件,一个不那么细节: - )
推荐答案
有问题,您必须从这里下载您想要的语言文件:
For those that still have problems, you have to download the language file your want from here:
然后将其包含在您的网页中,例如(意大利语):
and then include it in your page like this for example(italian language):
<script type="text/javascript" src="/scripts/jquery.ui.datepicker-it.js"></script>
然后使用 zilverdistel的代码:D
这篇关于如何本地化jQuery UI Datepicker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!