Originally started as a request to add localisation to the jQuery UI datepicker, the issue is now targeted at fixing an error that remained in that addition:
- Incorrect indexing of the $libraries array in hook_library_info_alter.
- Get it RTBC.
- Backport to D7 (easy, once it is in D8).
- Document the original request.
Original report by [Rob Loach]
Once #315100: Allow to add JS/CSS libraries (sets of files, settings, and dependent libraries) is in, we can provide internationalisation support for the jQuery UI date picker.
This patch implements
locale_library_alter() and adds in the locale language translation if it exists. The language files were found from the jQuery UI dev bundle 1.7.2 i18n minified folder.