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

Text strings, constants. Best practice?


Go to End


1980 Views

Avatar
patrik

Community Member, 9 Posts

30 June 2009 at 10:34pm

Edited: 30/06/2009 11:00pm

Hi!

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