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.

Comments

danillonunes’s picture

This 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.

jiv_e’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Thank 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.