mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Localizing label text in FormHelper::input() (Ticket #2314)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5549 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b7d7e70d46
commit
5ba07c76c4
1 changed files with 3 additions and 0 deletions
|
@ -582,6 +582,9 @@ class FormHelper extends AppHelper {
|
|||
$labelText = $label;
|
||||
}
|
||||
|
||||
if (!empty($labelText)) {
|
||||
$labelText = __($labelText, true);
|
||||
}
|
||||
$out = $this->label(null, $labelText, $labelAttributes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue