Translatable prompt on recordfinder

Prompt could only be hardcoded into yaml files. Now able to work with language files.
This commit is contained in:
Gonzalo Henríquez 2015-07-18 13:34:30 -03:00
parent 8e3d3d5e30
commit 13606ac770

View File

@ -150,7 +150,7 @@ class RecordFinder extends FormWidgetBase
$this->vars['descriptionValue'] = $this->getDescriptionValue();
$this->vars['listWidget'] = $this->listWidget;
$this->vars['searchWidget'] = $this->searchWidget;
$this->vars['prompt'] = str_replace('%s', '<i class="icon-th-list"></i>', $this->prompt);
$this->vars['prompt'] = str_replace('%s', '<i class="icon-th-list"></i>', e(trans($this->prompt)));
}
/**