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.

Archive /

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

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

Change Blog default languague


Reply


4 Posts   2153 Views

Avatar
msantang

Community Member, 41 Posts

8 March 2008 at 12:06pm

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.

Avatar
simon_w

Forum Moderator, 474 Posts

8 March 2008 at 4:16pm

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

Avatar
msantang

Community Member, 41 Posts

9 March 2008 at 7:02am

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.

Avatar
simon_w

Forum Moderator, 474 Posts

9 March 2008 at 7:47am

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

svn co http://svn.silverstripe.com/open/modules/blog/trunk blog

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.