MINOR Simplify i18n keys

This commit is contained in:
Damian Mooyman 2018-02-21 10:32:13 +13:00
parent 83c4ab8d18
commit 289d6a87a2
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
7 changed files with 8 additions and 7 deletions

View File

@ -13,7 +13,7 @@ class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_ChangedPages.Title', "Modified pages");
return _t(__CLASS__ . '.Title', "Modified pages");
}
public function getFilteredPages()

View File

@ -25,7 +25,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_DeletedPages.Title', "All pages, including archived");
return _t(__CLASS__ . '.Title', "All pages, including archived");
}
public function getFilteredPages()

View File

@ -20,7 +20,7 @@ class CMSSiteTreeFilter_PublishedPages extends CMSSiteTreeFilter
*/
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSIteTreeFilter_PublishedPages.Title', "Published pages");
return _t(__CLASS__ . '.Title', "Published pages");
}
/**

View File

@ -1,4 +1,5 @@
<?php
namespace SilverStripe\CMS\Controllers;
use SilverStripe\CMS\Model\SiteTree;
@ -10,7 +11,7 @@ class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_Search.Title', "All pages");
return _t(__CLASS__ . '.Title', "All pages");
}
/**

View File

@ -24,7 +24,7 @@ class CMSSiteTreeFilter_StatusDeletedPages extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_StatusDeletedPages.Title', 'Archived pages');
return _t(__CLASS__ . '.Title', 'Archived pages');
}
/**

View File

@ -14,7 +14,7 @@ class CMSSiteTreeFilter_StatusDraftPages extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_StatusDraftPages.Title', 'Draft pages');
return _t(__CLASS__ . '.Title', 'Draft pages');
}
/**

View File

@ -14,7 +14,7 @@ class CMSSiteTreeFilter_StatusRemovedFromDraftPages extends CMSSiteTreeFilter
public static function title()
{
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_StatusRemovedFromDraftPages.Title', 'Live but removed from draft');
return _t(__CLASS__ . '.Title', 'Live but removed from draft');
}
/**