The localization files with translated error messages from jquery-validate are not being loaded. This means that some error messages triggered by Drupal #states are not translated.

This patch loads the messages file for the current language, if it exists. Also includes the localization files from jquery-validate v 1.11 dated ~2013.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bwaindwain created an issue. See original summary.

bwaindwain’s picture

Title: Load localization messages from jquery.validate » Load localization messages from jquery-validate
Status: Active » Needs review
FileSize
68.53 KB
bwaindwain’s picture

I was encountering a js error "Cannot read property 'messages' of undefined" because the localization file was being loaded before jquery-validate-min.js. This patch adds a 'weight => 50' so that it will (hopefully!) be loaded last.

bwaindwain’s picture

Issue summary: View changes