2013-06-05 39 views

回答

11

add notranslate class jquery.ui.datepicker.js with class ui-helper-clearfix

+0

同样在谷歌网站上有描述https://cloud.google.com/translate/v2/faq#technical –

+0

同样的解决方案也出现在这里.... http://stackoverflow.com/questions/17130370/stopping-google-翻译 - 从 - 翻译 - 日期选择器 –

0

首先你需要在jQuery UI的JS搜索该

ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all

,或者你可以搜索整个项目,并且比

ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all notranslate更换所有发生。

关键字notranslate将阻止您的日历进行翻译。

2

,当你不能/不想改变jQuery UI的日期选择器的代码,你也可以使用beforeShow回调添加notranslate类:

beforeShow: function(input, inst) { 
    inst.dpDiv.addClass('notranslate'); 
} 

与版本测试1.12.0

相关问题