2013-06-05 20 views

答えて

11

notranslateクラスをjquery.ui.datepicker.jsのクラスui-helper-clearfixに追加します。

+0

はいgoogleサイトに記載されている同じhttps://cloud.google.com/translate/v2/faq#technical –

+0

同じソリューションもここにあります.... http://stackoverflow.com/questions/17130370/stopping-google- translate-from-translating-datepicker –

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

あなたは/あなたもnotranslateクラスを追加するbeforeShowコールバックを使用することができ、jQueryのUIのDatePickerのコードを変更したくないことはできません。

バージョン1.12.0

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

関連する問題