Jump to:

23355 Posts in 17744 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Changing default language

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: 1048 Views
  • Nic
    Avatar
    Community Member
    2 Posts

    Changing default language Link to this post

    I'm working on a site with 5 different languages where English is the original default language. Now my customer wants the visitor to see the Swedish version first when they enter the site.

    Since the customer already has a lot of content it's not an option of remaking the structure of the site.

    The site uses SilverStripe 2.2.1 and upgrading is NOT an option.

    putting

    i18n::enable();
    i18n::set_default_lang('sv_SE');
    i18n::set_locale('sv_SE');

    in mysite/_config.php

    only manages to change the name of the default language in the admin system and does NOTHING for the actually changing the default language presentet to the visitor.

    Is there any solution to this problem or am I f***ed?

    Best regards
    Nic

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