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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Language problems


Go to End


4 Posts   2707 Views

Avatar
nixa

Community Member, 3 Posts

15 March 2008 at 8:33am

Edited: 15/03/2008 8:39am

Hi ,

Here is a thing. Silverstripe have certain logic regarding translation of db items , whitch are that first have to be an item in to defoult language and then translate that item in to different language.

Problem is that in current project i need functionality that in every langage , language-owner have option that he buiilt his own content, not depending it on content of defoult language.

Can you give me some details what is best practice for me to get this thing work ...

Thanks

Avatar
nixa

Community Member, 3 Posts

18 March 2008 at 8:58pm

anyone ?

Avatar
Berteh

Community Member, 11 Posts

20 May 2008 at 10:07am

Edited: 20/05/2008 10:08am

You might eventually select another default language:

If you want to have new pages defaulting to a language other than english, you can configure this by

i18n::set_default_lang('de'); // for German ... in your _config.php

This has the advantage that you’re not required to have an english version for every german page you create, but can rather optionally attach an english translation.

moreover at http://doc.silverstripe.com/doku.php?id=multilingualcontent
(newbie here, so I won't be of more help :/ )

Avatar
cabrilo

Community Member, 3 Posts

15 October 2008 at 7:42am

This would require to change _config.php everytime you want to add new content. Is there an easier way?