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:
nate 2007-08-19 12:55:23 +00:00
parent b7d7e70d46
commit 5ba07c76c4

View file

@ -582,6 +582,9 @@ class FormHelper extends AppHelper {
$labelText = $label;
}
if (!empty($labelText)) {
$labelText = __($labelText, true);
}
$out = $this->label(null, $labelText, $labelAttributes);
}