Hello,
I got the blog module installed.
Now in my pagetree i also have this page 'viewall', this template gets all blogentry's and renders them underneath eachother with the complete story expanded. So visitors who want to view all blog entry's underneath eachother can read it like this.
This works great.
<?php
class ViewAllBlogs extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array();
}
class ViewAllBlogs_Controller extends Page_Controller {
function ViewAll($num=9999) {
$news = DataObject::get_one("BlogHolder");
return ($news) ? DataObject::get("BlogEntry", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}
}
?>
Now.. my language is set to Dutch in the config.
// Set the site locale
i18n::set_locale('nl_NL');
This works great for the blog, but on the view-all page all the blog sentences (like posted on..) are in English again. On the blog section of my site they do appear in Dutch.
How do i fix this?
template
<% _t('POSTEDBY', 'Posted by') %> $Author.XML <% _t('POSTEDON', 'op') %> $Date.Long