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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


2 Posts   1601 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