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

Help with multiple language website


Reply


2 Posts   1133 Views

Avatar
SoulChild

Community Member, 1 Post

30 January 2009 at 10:10am

I'm need of some direction here. I've never really worked with silverstripe before but it looks very promising to say the least. I currently have a project where I have to make a site in two languages.(Dutch and French)

I have no idea how to make this happen in silverstripe. There's some vague documentation out there but I'm completely lost at the moment. I refuse to believe I'm the first person that tries to make a website with two languages with silverstripe...

If anyone can point me in the right direction or give me a step by step tutoriol, you would be a godsend. I'm a pretty good PHP coder, I've made my own php sites and I would be able to make this in my own way with two database-tables(one for each language), but this is the first time I've ever used Silverstripe. So I'm kinda lost. It's possible that the solution is very simple but I can't find it.

I've found this article but I have no idea where to put this code or where it comes from.

http://doc.silverstripe.com/doku.php?id=multilingualcontent

Avatar
Willr

Forum Moderator, 5513 Posts

30 January 2009 at 12:28pm

Add Translatable::enable(); to your mysite/_config.php file. This will enable Translatable. You then need to rebuild the database by visiting http://www.site.com/db/build?flush=1. Try that and see what happens.. I don't have alot of experience with it but Ive seen quite a very multilingual sites setup via the sites showcase, http://www.demconvention.com/ is one that I have worked on that supports english / spanish