Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
7b886301
Commit
7b886301
authored
Dec 22, 2008
by
fantu
Browse files
try to improve multilanguage on form field validator error
parent
fb06ccf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform.inc.php
View file @
7b886301
...
...
@@ -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
"
;
}
...
...
interface/web/lang/lib/lang/en_tform.lng
View file @
7b886301
<?php
$wb
[
'btn_save_txt'
]
=
"Save"
;
$wb
[
'btn_cancel_txt'
]
=
"Cancel"
;
$wb
[
'ipv4_validator_error_txt'
]
=
"Is not valid IP address"
;
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment