diff --git a/lang/en.yml b/lang/en.yml
index 326e894..857dd25 100755
--- a/lang/en.yml
+++ b/lang/en.yml
@@ -4,9 +4,9 @@ en:
AddFail: 'Unable to save {class} to the database.'
PermissionFail: 'You don''t have permission to create a {class}.'
SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState:
- Draft: ' Saved as Draft on {date}'
- Published: ' Published on {date}'
- Timer: ' Publish at {date}'
+ Draft: 'Saved as Draft on {date}'
+ Published: 'Published on {date}'
+ Timer: 'Publish at {date}'
SilverStripe\Blog\Model:
Title: Title
SilverStripe\Blog\Model\Blog:
diff --git a/src/Forms/GridField/GridFieldBlogPostState.php b/src/Forms/GridField/GridFieldBlogPostState.php
index 6913b22..58b8e95 100644
--- a/src/Forms/GridField/GridFieldBlogPostState.php
+++ b/src/Forms/GridField/GridFieldBlogPostState.php
@@ -34,9 +34,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
*/
$lastEdited = $record->dbObject('LastEdited');
- return _t(
+ return ' ' . _t(
__CLASS__ . '.Draft',
- ' Saved as Draft on {date}',
+ 'Saved as Draft on {date}',
'State for when a post is saved.',
[
'date' => $lastEdited->FormatFromSettings(),
@@ -50,9 +50,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
$publishDate = $record->dbObject('PublishDate');
if (strtotime($record->PublishDate) > time()) {
- return _t(
+ return ' ' . _t(
__CLASS__ . '.Timer',
- ' Publish at {date}',
+ 'Publish at {date}',
'State for when a post is published.',
[
'date' => $publishDate->FormatFromSettings(),
@@ -60,9 +60,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
) . $modifiedLabel;
}
- return _t(
+ return ' ' . _t(
__CLASS__ . '.Published',
- ' Published on {date}',
+ 'Published on {date}',
'State for when a post is published.',
[
'date' => $publishDate->FormatFromSettings(),
diff --git a/templates/Includes/EntryMeta.ss b/templates/Includes/EntryMeta.ss
index 8100f21..11160a7 100644
--- a/templates/Includes/EntryMeta.ss
+++ b/templates/Includes/EntryMeta.ss
@@ -1,13 +1,13 @@
<% if $Categories.exists %>
- <%t Blog.PostedIn "Posted in" %>
+ <%t SilverStripe\\Blog\\Model\\Blog.PostedIn "Posted in" %>
<% loop $Categories %>
$Title<% if not Last %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
<% if $Tags.exists %>
- <%t Blog.Tagged "Tagged" %>
+ <%t SilverStripe\\Blog\\Model\\Blog.Tagged "Tagged" %>
<% loop $Tags %>
$Title<% if not Last %>, <% else %>;<% end_if %>
<% end_loop %>
@@ -15,20 +15,20 @@
<% if $Comments.exists %>
- <%t Blog.Comments "Comments" %>
+ <%t SilverStripe\\Blog\\Model\\Blog.Comments "Comments" %>
$Comments.count
;
<% end_if %>
- <%t Blog.Posted "Posted" %>
+ <%t SilverStripe\\Blog\\Model\\Blog.Posted "Posted" %>
$PublishDate.ago
<% if $Credits %>
- <%t Blog.By "by" %>
+ <%t SilverStripe\\Blog\\Model\\Blog.By "by" %>
<% loop $Credits %>
<% if not $First && not $Last %>, <% end_if %>
- <% if not $First && $Last %> <%t Blog.AND "and" %> <% end_if %>
+ <% if not $First && $Last %> <%t SilverStripe\\Blog\\Model\\Blog.AND "and" %> <% end_if %>
<% if $URLSegment %>
$Name.XML
<% else %>
diff --git a/templates/Includes/PostSummary.ss b/templates/Includes/PostSummary.ss
index b06d1f1..7beec2c 100644
--- a/templates/Includes/PostSummary.ss
+++ b/templates/Includes/PostSummary.ss
@@ -1,13 +1,13 @@
- ">
+ ">
$FeaturedImage.ScaleWidth(795)
@@ -19,7 +19,7 @@
<% end_if %>
- <%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
+ <%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
diff --git a/templates/SilverStripe/Blog/Model/Layout/Blog.ss b/templates/SilverStripe/Blog/Model/Layout/Blog.ss
index 5a29c3b..29ffcaa 100644
--- a/templates/SilverStripe/Blog/Model/Layout/Blog.ss
+++ b/templates/SilverStripe/Blog/Model/Layout/Blog.ss
@@ -5,7 +5,7 @@
<% if $ArchiveYear %>
- <%t Blog.Archive 'Archive' %>:
+ <%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
<% if $ArchiveDay %>
$ArchiveDate.Nice
<% else_if $ArchiveMonth %>
@@ -14,9 +14,9 @@
$ArchiveDate.format('Y')
<% end_if %>
<% else_if $CurrentTag %>
- <%t Blog.Tag 'Tag' %>: $CurrentTag.Title
+ <%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
<% else_if $CurrentCategory %>
- <%t Blog.Category 'Category' %>: $CurrentCategory.Title
+ <%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title
<% else %>
$Title
<% end_if %>
@@ -29,7 +29,7 @@
<% include PostSummary %>
<% end_loop %>
<% else %>
-
<%t Blog.NoPosts 'There are no posts' %>
+ <%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %>
<% end_if %>