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

multilanguage support


Go to End


3 Posts   1609 Views

Avatar
pille

Community Member, 1 Post

9 January 2010 at 10:05am

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

Community Member, 203 Posts

11 January 2010 at 7:27am

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

Avatar
biapar

Forum Moderator, 435 Posts

17 January 2010 at 3:37am

Have you this setup?

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