Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » how/what does _t mean?

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1826 Views
  • wildflower1975
    Avatar
    Community Member
    59 Posts

    how/what does _t mean? Link to this post

    It's in the ForumRole.php hence the post in here,

    new CheckableOption('CompanyPublic', new TextField('Address', _t('ForumRole.COMPANY', 'Company')), true),

    I'm guessing that it tests for the existence of a Constant (which as far as I can see isn't set anywhere in v2.5) and so returns Company in the call above.

    I'd like to know where this function/method called _t is?

    should it be used in other places? is it a relic from version 0.0.0.1? I've read it could be a private method but don't know where to look.

    cheers

    possible answer = I think it's something to do with internationalization - i18n

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: how/what does _t mean? Link to this post

    _t is the translation function. You'll see it throughout all the modules and all the core. See http://doc.silverstripe.org/doku.php?id=i18n#the_t_function for more information

    1826 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.