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, biapar, Willr, Ingo, swaiba, simon_w

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


Reply


2 Posts   940 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.

[url=http://doc.silverstripe.org/doku.php?id=i18n]Read more about it here...[/url]

Cheers,
Christian