The code commited on #975320: Date picker not translated tries to add a translation file based on actual language, but if the file don't exist, the added JS will load a 404 page, which can break the site JS.
Also, the same happen if your language code is different from the one used in jQuery UI. For example, Drupal uses 'pt-br', while jQuery UI uses 'pt-BR', so this break in case sensitive servers.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 0001-Issue-1817060-Date-popup-translation-breaks-JavaScri.patch | 1.33 KB | danillonunes |
Comments
Comment #1
danillonunes commentedThis patch tries to fix it by checking if the file exists before adding it. It also creates a map to fix language name case differences between Drupal and jQuery UI.
Comment #2
jiv_e commentedThank you for your contribution! This issue is getting old with no activity. I'm cleaning the issue queue so I'll close this for now. Please feel free to reopen if this is still relevant.