Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

Calling _t function within searchable array


Reply

2 Posts   477 Views

Avatar
ChurchDude

4 September 2011 at 4:53am Community Member, 19 Posts

Hello,

I'm a bit stuck. The following does not work.

static $searchable_fields = array('Name','City','StateProvince'=>array('title',_t('Family.STATEPROVINCE')));

How do I use my international language files to set the searchable fields title???

Avatar
ChurchDude

22 February 2012 at 2:43am Community Member, 19 Posts

K. I have figured out my problem lies with the static declaration. Statics cannot call variables so this will not work.

Anyone have any ideas? Seems rather limiting for International needs.