Jump to:

23001 Posts in 11702 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Silverstripe allways start's in English!(stage)

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

Page: 1
Go to End
Author Topic: 873 Views
  • gonace
    Avatar
    Community Member
    11 Posts

    Silverstripe allways start's in English!(stage) Link to this post

    I've been scratching my head for a while now, been trying everything I could find in this forums but nothing helps! When I enter my homepage it's always in English, I've added the following to _config.php

    //Set Default Language
    i18n::enable();
    i18n::set_locale('sv_SE');
    i18n::set_default_lang('sv_SE');
    Translatable::set_default_lang('sv_SE');

    The site response:
    The requested page couldn't be found.

    But if i add "?stage=Live&locale=sv_SE" The Swedish site appears!

    But can't get it to work! I've tried to empty the database and start from scratch but if i don't add a page for "English" the site won't open, and if I add a page for "English" it always opens the English version of the page!

    How hard can it be to get another language as default/start language?

  • bartvanirsel
    Avatar
    Community Member
    88 Posts

    Re: Silverstripe allways start's in English!(stage) Link to this post

    hi gonace,

    i had a similar problem. If i remember it correctly i solved this by chaning the url and/ or title of the page you need to be the
    default language in 'home'. Name the other one something like 'home_en'

    I'm curious if this will solve your problem.

    873 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.