Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Change Blog default languague

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: 2106 Views
  • msantang
    Avatar
    Community Member
    41 Posts

    Change Blog default languague Link to this post

    Im making a new site with default lenguague Spanish.

    i add on _config.php (mysite):
    i18n::enable();
    i18n::set_default_lang('es');
    i18n::set_locale('es_ES');

    and the same on _config.php (blog)

    Admin loguin are in spanish but the entire blog page are in english.

    How i change the blog languague?

    Thanks in advance.

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Change Blog default languague Link to this post

    If you're talking about the content of the page, you need to change it yourself from within the CMS.

  • msantang
    Avatar
    Community Member
    41 Posts

    Re: Change Blog default languague Link to this post

    No, im talking about the link of the module blog, for example "comments" ,"Posted by on 1 March 2008 ","Post a new blog entry", etc.

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Change Blog default languague Link to this post

    That will require you to do an SVN checkout of the blog modules.

    Then in the blog/lang folder, copy en_US.php ro es_ES.php, and edit es_ES.php, translating it to Spanish.

    If you can't do a SVN checkout, you'll need to wait for 0.1.1 of the blog to be released.

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