23486 Posts in 18995 Topics by 2878 members
|Go to End|
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.
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
|Go to Top|