Jump to:

3448 Posts in 1062 Topics by 738 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Calling _t function within searchable array

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 465 Views
  • ChurchDude
    Avatar
    Community Member
    19 Posts

    Calling _t function within searchable array Link to this post

    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???

  • ChurchDude
    Avatar
    Community Member
    19 Posts

    Re: Calling _t function within searchable array Link to this post

    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.

    465 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.