mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX further translations fixed in templates
This commit is contained in:
parent
90359e36f8
commit
dc0e56b49a
@ -4,9 +4,9 @@ en:
|
|||||||
AddFail: 'Unable to save {class} to the database.'
|
AddFail: 'Unable to save {class} to the database.'
|
||||||
PermissionFail: 'You don''t have permission to create a {class}.'
|
PermissionFail: 'You don''t have permission to create a {class}.'
|
||||||
SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState:
|
SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState:
|
||||||
Draft: '<i class="btn-icon gridfield-icon btn-icon-pencil"></i> Saved as Draft on {date}'
|
Draft: 'Saved as Draft on {date}'
|
||||||
Published: '<i class="btn-icon gridfield-icon btn-icon-accept"></i> Published on {date}'
|
Published: 'Published on {date}'
|
||||||
Timer: '<i class="gridfield-icon blog-icon-timer"></i> Publish at {date}'
|
Timer: 'Publish at {date}'
|
||||||
SilverStripe\Blog\Model:
|
SilverStripe\Blog\Model:
|
||||||
Title: Title
|
Title: Title
|
||||||
SilverStripe\Blog\Model\Blog:
|
SilverStripe\Blog\Model\Blog:
|
||||||
|
@ -34,9 +34,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
|||||||
*/
|
*/
|
||||||
$lastEdited = $record->dbObject('LastEdited');
|
$lastEdited = $record->dbObject('LastEdited');
|
||||||
|
|
||||||
return _t(
|
return '<i class="btn-icon gridfield-icon btn-icon-pencil"></i> ' . _t(
|
||||||
__CLASS__ . '.Draft',
|
__CLASS__ . '.Draft',
|
||||||
'<i class="btn-icon gridfield-icon btn-icon-pencil"></i> Saved as Draft on {date}',
|
'Saved as Draft on {date}',
|
||||||
'State for when a post is saved.',
|
'State for when a post is saved.',
|
||||||
[
|
[
|
||||||
'date' => $lastEdited->FormatFromSettings(),
|
'date' => $lastEdited->FormatFromSettings(),
|
||||||
@ -50,9 +50,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
|||||||
$publishDate = $record->dbObject('PublishDate');
|
$publishDate = $record->dbObject('PublishDate');
|
||||||
|
|
||||||
if (strtotime($record->PublishDate) > time()) {
|
if (strtotime($record->PublishDate) > time()) {
|
||||||
return _t(
|
return '<i class="gridfield-icon blog-icon-timer"></i> ' . _t(
|
||||||
__CLASS__ . '.Timer',
|
__CLASS__ . '.Timer',
|
||||||
'<i class="gridfield-icon blog-icon-timer"></i> Publish at {date}',
|
'Publish at {date}',
|
||||||
'State for when a post is published.',
|
'State for when a post is published.',
|
||||||
[
|
[
|
||||||
'date' => $publishDate->FormatFromSettings(),
|
'date' => $publishDate->FormatFromSettings(),
|
||||||
@ -60,9 +60,9 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
|||||||
) . $modifiedLabel;
|
) . $modifiedLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _t(
|
return '<i class="btn-icon gridfield-icon btn-icon-accept"></i> ' . _t(
|
||||||
__CLASS__ . '.Published',
|
__CLASS__ . '.Published',
|
||||||
'<i class="btn-icon gridfield-icon btn-icon-accept"></i> Published on {date}',
|
'Published on {date}',
|
||||||
'State for when a post is published.',
|
'State for when a post is published.',
|
||||||
[
|
[
|
||||||
'date' => $publishDate->FormatFromSettings(),
|
'date' => $publishDate->FormatFromSettings(),
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<p class="blog-post-meta">
|
<p class="blog-post-meta">
|
||||||
<% if $Categories.exists %>
|
<% if $Categories.exists %>
|
||||||
<%t Blog.PostedIn "Posted in" %>
|
<%t SilverStripe\\Blog\\Model\\Blog.PostedIn "Posted in" %>
|
||||||
<% loop $Categories %>
|
<% loop $Categories %>
|
||||||
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
|
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if $Tags.exists %>
|
<% if $Tags.exists %>
|
||||||
<%t Blog.Tagged "Tagged" %>
|
<%t SilverStripe\\Blog\\Model\\Blog.Tagged "Tagged" %>
|
||||||
<% loop $Tags %>
|
<% loop $Tags %>
|
||||||
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
|
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %>;<% end_if %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
@ -15,20 +15,20 @@
|
|||||||
|
|
||||||
<% if $Comments.exists %>
|
<% if $Comments.exists %>
|
||||||
<a href="{$Link}#comments-holder">
|
<a href="{$Link}#comments-holder">
|
||||||
<%t Blog.Comments "Comments" %>
|
<%t SilverStripe\\Blog\\Model\\Blog.Comments "Comments" %>
|
||||||
$Comments.count
|
$Comments.count
|
||||||
</a>;
|
</a>;
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<%t Blog.Posted "Posted" %>
|
<%t SilverStripe\\Blog\\Model\\Blog.Posted "Posted" %>
|
||||||
<a href="$MonthlyArchiveLink">$PublishDate.ago</a>
|
<a href="$MonthlyArchiveLink">$PublishDate.ago</a>
|
||||||
|
|
||||||
<% if $Credits %>
|
<% if $Credits %>
|
||||||
<%t Blog.By "by" %>
|
<%t SilverStripe\\Blog\\Model\\Blog.By "by" %>
|
||||||
|
|
||||||
<% loop $Credits %>
|
<% loop $Credits %>
|
||||||
<% if not $First && not $Last %>, <% end_if %>
|
<% 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 %>
|
<% if $URLSegment %>
|
||||||
<a href="$URL">$Name.XML</a>
|
<a href="$URL">$Name.XML</a>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<div class="post-summary">
|
<div class="post-summary">
|
||||||
<h2>
|
<h2>
|
||||||
<a href="$Link" title="<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
|
<a href="$Link" title="<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
|
||||||
<% if $MenuTitle %>$MenuTitle
|
<% if $MenuTitle %>$MenuTitle
|
||||||
<% else %>$Title<% end_if %>
|
<% else %>$Title<% end_if %>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="post-image">
|
<p class="post-image">
|
||||||
<a href="$Link" title="<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
|
<a href="$Link" title="<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
|
||||||
$FeaturedImage.ScaleWidth(795)
|
$FeaturedImage.ScaleWidth(795)
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<% end_if %>
|
<% end_if %>
|
||||||
<p>
|
<p>
|
||||||
<a href="$Link">
|
<a href="$Link">
|
||||||
<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
|
<%t SilverStripe\\Blog\\Model\\Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<article>
|
<article>
|
||||||
<h1>
|
<h1>
|
||||||
<% if $ArchiveYear %>
|
<% if $ArchiveYear %>
|
||||||
<%t Blog.Archive 'Archive' %>:
|
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
|
||||||
<% if $ArchiveDay %>
|
<% if $ArchiveDay %>
|
||||||
$ArchiveDate.Nice
|
$ArchiveDate.Nice
|
||||||
<% else_if $ArchiveMonth %>
|
<% else_if $ArchiveMonth %>
|
||||||
@ -14,9 +14,9 @@
|
|||||||
$ArchiveDate.format('Y')
|
$ArchiveDate.format('Y')
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% else_if $CurrentTag %>
|
<% else_if $CurrentTag %>
|
||||||
<%t Blog.Tag 'Tag' %>: $CurrentTag.Title
|
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
||||||
<% else_if $CurrentCategory %>
|
<% else_if $CurrentCategory %>
|
||||||
<%t Blog.Category 'Category' %>: $CurrentCategory.Title
|
<%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title
|
||||||
<% else %>
|
<% else %>
|
||||||
$Title
|
$Title
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<% include PostSummary %>
|
<% include PostSummary %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p><%t Blog.NoPosts 'There are no posts' %></p>
|
<p><%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %></p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user