2013-06-05 9 views

Odpowiedz

11

dodać klasę notranslate w klasie z klasą ui-helper-clearfix.

+0

Tak samo opisano na stronie google https://cloud.google.com/translate/v2/faq#technical –

+0

te same rozwiązania również tutaj. Http://stackoverflow.com/questions/17130370/stopping-google- translate-from-translating-datepicker –

0

Po pierwsze trzeba szukać tej

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

w jQuery UI JS lub można szukać cały projekt, a nie zastępować wszystkie wystąpienia z

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

słowo kluczowe notranslate uniemożliwi tłumaczenie Twojego kalendarza.

2

gdy nie można/nie chce zmienić kod datepicker jQuery UI, można również użyć zwrotnego beforeShow dodać klasę notranslate:

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

testowane z wersją 1.12.0

Powiązane problemy