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   881 Views

Avatar
micahsheets

20 March 2009 at 6:51am Community Member, 164 Posts

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

20 March 2009 at 11:30pm Community Member, 141 Posts

Hi.

It is a translator-function.

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

Cheers,
Christian