Skip to content

Commit

Permalink
[4.4] Form Text Field: Translate text for frontend validation (joomla…
Browse files Browse the repository at this point in the history
…#43198)

* Form Text Field: Translate text for frontend validation

* Update text.php

---------

Co-authored-by: Quy <quy@nomonkeybiz.com>
  • Loading branch information
2 people authored and dgrammatiko committed Aug 11, 2024
1 parent 6fd3e37 commit 04060a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
!empty($pattern) ? 'pattern="' . $pattern . '"' : '',

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

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

0 comments on commit 04060a5

Please sign in to comment.