Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | clientside_validation-include_localization_files-2747873-3.patch | 69.24 KB | bwaindwain |
#2 | clientside_validation-include_localization_files-2747873-2.patch | 68.53 KB | bwaindwain |
Comments
Comment #2
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedComment #3
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedI 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.
Comment #4
bwaindwain CreditAttribution: bwaindwain as a volunteer commented