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

Text strings, constants. Best practice?




30 June 2009 at 10:34pm (Last edited: 30 June 2009 11:00pm), Community Member, 9 Posts


As a pretty new Silverstripe developer i wonder how to handle constant text strings in templates? It could be strings such as "Sign up", "Author", "By" and similar strings used in the application. I have previously used Zend Framework a lot and have then i used Zend_Translate for this purpose.

Are there any similar way to handle text strings in Silverstripe, preferably in language files?

Edit: Spelling