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.

Forum Module

Discuss the Forum Module.

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

how/what does _t mean?


2 Posts   1964 Views


18 February 2010 at 3:00pm (Last edited: 18 February 2010 4:26pm), Community Member, 59 Posts

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 I've read it could be a private method but don't know where to look.


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


18 February 2010 at 4:53pm Forum Moderator, 5511 Posts

_t is the translation function. You'll see it throughout all the modules and all the core. See for more information