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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

What is the purpose of _t('Controller.XXXXXX', "XXXXXX")


Go to End
Reply


2 Posts   1044 Views

Avatar
micahsheets

Community Member, 165 Posts

20 March 2009 at 6:51am

I have seen this syntax all over, but have no idea what it is for. Well not entirely no idea, I can tell that somehow it sets a variable to the value of a string but I would like to learn more about this and when and why I should use this sort of syntax.

Avatar
Invader_Zim

Community Member, 141 Posts

20 March 2009 at 11:30pm

Hi.

It is a translator-function.

Read more about it here...

Cheers,
Christian