Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Language problems

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

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

Page: 1
Go to End
Author Topic: 1981 Views
  • nixa
    Avatar
    Community Member
    3 Posts

    Language problems Link to this post

    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

  • nixa
    Avatar
    Community Member
    3 Posts

    Re: Language problems Link to this post

    anyone ?

  • Berteh
    Avatar
    Community Member
    11 Posts

    Re: Language problems Link to this post

    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 :/ )

  • cabrilo
    Avatar
    Community Member
    3 Posts

    Re: Language problems Link to this post

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

    1981 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.