Skip to content

Commit 7aaa9d3

Browse files
HackwarQuyTon
andauthored
[4.4] Form Text Field: Translate text for frontend validation (joomla#43198)
* Form Text Field: Translate text for frontend validation * Update text.php --------- Co-authored-by: Quy <[email protected]>
1 parent 2284c09 commit 7aaa9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/joomla/form/field/text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
!empty($pattern) ? 'pattern="' . $pattern . '"' : '',
9696

9797
// @TODO add a proper string here!!!
98-
!empty($validationtext) ? 'data-validation-text="' . $validationtext . '"' : '',
98+
!empty($validationtext) ? 'data-validation-text="' . $this->escape(Text::_($validationtext)) . '"' : '',
9999
];
100100

101101
$addonBeforeHtml = '<span class="input-group-text">' . Text::_($addonBefore) . '</span>';

0 commit comments

Comments
 (0)