mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Translatable prompt on recordfinder
Prompt could only be hardcoded into yaml files. Now able to work with language files.
This commit is contained in:
parent
8e3d3d5e30
commit
13606ac770
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user