From 5689afb6b4ae9aba8c4469bdc81eae5292a727ee Mon Sep 17 00:00:00 2001 From: Jyrki Lilja Date: Thu, 15 May 2014 10:08:20 +0300 Subject: [PATCH] Require localization files for validator --- code/model/UserDefinedForm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index d17c580..fbc157f 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -435,6 +435,8 @@ class UserDefinedForm_Controller extends Page_Controller { Requirements::javascript('userforms/thirdparty/jquery-validate/jquery.validate.js'); Requirements::add_i18n_javascript('userforms/javascript/lang'); Requirements::javascript('userforms/javascript/UserForm_frontend.js'); + Requirements::javascript('userforms/thirdparty/jquery-validate/localization/messages_' . i18n::get_lang_from_locale(i18n::get_locale()) . '.js'); + Requirements::javascript('userforms/thirdparty/jquery-validate/localization/methods_' . i18n::get_lang_from_locale(i18n::get_locale()) . '.js'); if($this->HideFieldLabels) Requirements::javascript('userforms/thirdparty/Placeholders.js/Placeholders.min.js'); }