5098 Posts in 1518 Topics by 1115 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 783 Views |
-
Need help with multilingualcontent

17 April 2010 at 1:34am Last edited: 17 April 2010 1:37am
Dear all!
Sorry for posing such a simple question but I am still a newbie with SilverStripe. So here we go: I have an englisch website up and running with SilverStripe and I just love it. So far everything works perfect and the layout is incredibly easy to customise. Now I try to get my site to run multilingual content. I want to translate all my English pages to Finish and German. Therefore I tried to implement multilingual content as described in this documentation http://doc.silverstripe.org/doku.php?id=multilingualcontent
I can't get it work though
Where exactly do I have to add the following code to?
I assume it has to be /mysite/_config.php or is it /cms/_config.php? What do sitetree and translateable stand for in the parenthesis? Will it let me translate "page"-type content?Object::add_extension('SiteTree', 'Translatable');
Once this is done, where do I have to add the next bits of code like this one?
And what is the difference between the 4 types of code provided in the documentry?$translatedObj = Translatable::get_one_by_locale('MyObject', 'de_DE');
Again, I am sorry to ask that many questions but I am not too familiar with php yet but eager to learn.
Best,
TorstenPS: I forget to mention that I am using version 2.3.6 right now.
-
Re: Need help with multilingualcontent

10 May 2010 at 8:55pm
I finally figured out myself: I simply added Translatable::enable(); to the confing.php and now it works.
| 783 Views | ||
|
Page:
1
|
Go to Top |

