MINOR: BlogPost: Sets Title label to "Post Title", instead of misleading "Page name"

This commit is contained in:
James Cocker 2014-06-11 10:20:20 +01:00
parent ba825f3e4e
commit fedfaa8d53
2 changed files with 14 additions and 0 deletions

View File

@ -14,6 +14,7 @@ en:
Categories: 'Categories' Categories: 'Categories'
Tags: 'Tags' Tags: 'Tags'
FeaturedImage: 'Featured Image' FeaturedImage: 'Featured Image'
PageTitleLabel: 'Post Title'
Blog: Blog:
BlogPosts: 'Blog Posts' BlogPosts: 'Blog Posts'
Categories: 'Categories' Categories: 'Categories'

View File

@ -176,6 +176,19 @@ class BlogPost extends Page {
return Controller::join_links($this->Parent()->Link("archive"), $date->format("Y")); return Controller::join_links($this->Parent()->Link("archive"), $date->format("Y"));
} }
/**
* Sets the label for BlogPost.Title to 'Post Title' (Rather than 'Page name')
*
* @return array
**/
public function fieldLabels($includerelations = true) {
$labels = parent::fieldLabels($includerelations);
$labels['Title'] = _t('BlogPost.PageTitleLabel', "Post Title");
return $labels;
}
} }