Skip to content

Commit

Permalink
Make default email validation error translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nciske committed Jan 18, 2014
1 parent c849d5d commit b967bf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions salesforce.php
Expand Up @@ -566,9 +566,8 @@ function salesforce_form_shortcode($atts) {

if ($id == 'email' && $input['required'] && !is_email($val) ) {
$error['valid'] = false;
$error['message'] = 'The email address you entered is not valid.';
$error['message'] = __('The email address you entered is not valid.','salesforce');
}


$error = apply_filters('sfwp2l_validate_field', $error, $id, $val, $options['forms'][$form]['inputs'][$id] );

Expand Down Expand Up @@ -739,4 +738,4 @@ function save_error(){
}
*/

register_activation_hook( __FILE__, 'salesforce_activate' );
register_activation_hook( __FILE__, 'salesforce_activate' );

0 comments on commit b967bf8

Please sign in to comment.