From 383ae8f8b553f81d357e2fe1528afeda84b95cdb Mon Sep 17 00:00:00 2001 From: Kirk Mayo Date: Mon, 7 Jan 2013 15:37:04 +1300 Subject: [PATCH] BUG SiteTree_Information.ss was not making use if i18n translations --- lang/en.yml | 2 ++ lang/en_GB.yml | 2 ++ templates/SiteTree_Information.ss | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lang/en.yml b/lang/en.yml index 777402c9..52a6247a 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -320,6 +320,8 @@ en: HTMLEDITORTITLE: Content INHERIT: 'Inherit from parent page' LASTUPDATED: 'Last Updated' + LASTSAVED: 'Last saved' + LASTPUBLISHED: 'Last published' LINKCHANGENOTE: 'Changing this page''s link will also affect the links of all child pages.' MENUTITLE: 'Navigation label' METADESC: 'Meta Description' diff --git a/lang/en_GB.yml b/lang/en_GB.yml index e95b794f..5b80b964 100644 --- a/lang/en_GB.yml +++ b/lang/en_GB.yml @@ -328,6 +328,8 @@ en_GB: HTMLEDITORTITLE: Content INHERIT: 'Inherit from parent page' LASTUPDATED: 'Last Updated' + LASTSAVED: 'Last saved' + LASTPUBLISHED: 'Last published' LINKCHANGENOTE: 'Changing this page''s link will also affect the links of all child pages.' MENUTITLE: 'Navigation label' METADESC: Description diff --git a/templates/SiteTree_Information.ss b/templates/SiteTree_Information.ss index 81ed5ddf..adfd11e5 100644 --- a/templates/SiteTree_Information.ss +++ b/templates/SiteTree_Information.ss @@ -1,9 +1,9 @@
-

<% _t('LASTSAVED', 'Last saved') %> $LastEdited.Ago(0) +

<% _t('SiteTree.LASTSAVED', 'Last saved') %> $LastEdited.Ago(0) <% if ExistsOnLive %> -
<% _t('LASTPUBLISHED', 'Last published') %> $Live.LastEdited.Ago(0) +
<% _t('SiteTree.LASTPUBLISHED', 'Last published') %> $Live.LastEdited.Ago(0) <% else %> -
<% _t('NOTPUBLISHED', 'Not published') %> +
<% _t('SiteTree.NOTPUBLISHED', 'Not published') %> <% end_if %>