Skip to content

Commit 7b88630

Browse files
author
fantu
committed
try to improve multilanguage on form field validator error
1 parent fb06ccf commit 7b88630

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ function validateField($field_name, $field_value, $validators) {
643643
if($vip==0) {
644644
$errmsg = $validator['errmsg'];
645645
if(isset($this->wordbook[$errmsg])) {
646-
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
646+
$this->errorMessage .= $field_name.": ".$this->wordbook['ipv4_validator_error_txt']."<br />\r\n";
647647
} else {
648648
$this->errorMessage .= $errmsg."<br />\r\n";
649649
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
22
$wb['btn_save_txt'] = "Save";
33
$wb['btn_cancel_txt'] = "Cancel";
4+
$wb['ipv4_validator_error_txt'] = "Is not valid IP address";
45
?>

0 commit comments

Comments
 (0)