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

multilanguage support


Reply

3 Posts   1110 Views

Avatar
pille

9 January 2010 at 10:05am Community Member, 1 Post

hello guys
first i have to say the cms is not bad - i just look at it the first time
and have already problem
the multilanguage support

i found a docu where it says to add
Object::add_extension('SiteTree', 'Translatable');
in mysite/-config.php

i have done it and i get an error back

[User Error] Couldn't run query: SELECT Distinct Locale FROM SiteTree GROUP BY Locale Unknown column 'Locale' in 'field list'
GET /silver/admin/

Line 400 in C:\wamp\silver\sapphire\core\model\MySQLDatabase.php

can somebody explain to me in language which is understandable
i really dont understand the statements on the docu

thanks

Avatar
yurigoul

11 January 2010 at 7:27am Community Member, 202 Posts

Have you given a dev/build? (as in: go to http://yoursite.com/dev/build/ in your browser)

Avatar
biapar

17 January 2010 at 3:37am Forum Moderator, 435 Posts

Have you this setup?

Object::add_extension('SiteTree', 'Translatable');
i18n::enable();
Translatable::set_default_locale('it_IT');