Commit 7b886301 authored by fantu's avatar fantu
Browse files

try to improve multilanguage on form field validator error

parent fb06ccf6
......@@ -643,7 +643,7 @@ class tform {
if($vip==0) {
$errmsg = $validator['errmsg'];
if(isset($this->wordbook[$errmsg])) {
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
$this->errorMessage .= $field_name.": ".$this->wordbook['ipv4_validator_error_txt']."<br />\r\n";
} else {
$this->errorMessage .= $errmsg."<br />\r\n";
}
......
<?php
$wb['btn_save_txt'] = "Save";
$wb['btn_cancel_txt'] = "Cancel";
$wb['ipv4_validator_error_txt'] = "Is not valid IP address";
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment