mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Simplify i18n keys
This commit is contained in:
parent
83c4ab8d18
commit
289d6a87a2
@ -13,7 +13,7 @@ class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_ChangedPages.Title', "Modified pages");
|
return _t(__CLASS__ . '.Title', "Modified pages");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFilteredPages()
|
public function getFilteredPages()
|
||||||
|
@ -25,7 +25,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
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()
|
public function getFilteredPages()
|
||||||
|
@ -20,7 +20,7 @@ class CMSSiteTreeFilter_PublishedPages extends CMSSiteTreeFilter
|
|||||||
*/
|
*/
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
return _t('SilverStripe\\CMS\\Controllers\\CMSSIteTreeFilter_PublishedPages.Title', "Published pages");
|
return _t(__CLASS__ . '.Title', "Published pages");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace SilverStripe\CMS\Controllers;
|
namespace SilverStripe\CMS\Controllers;
|
||||||
|
|
||||||
use SilverStripe\CMS\Model\SiteTree;
|
use SilverStripe\CMS\Model\SiteTree;
|
||||||
@ -10,7 +11,7 @@ class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_Search.Title', "All pages");
|
return _t(__CLASS__ . '.Title', "All pages");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +24,7 @@ class CMSSiteTreeFilter_StatusDeletedPages extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_StatusDeletedPages.Title', 'Archived pages');
|
return _t(__CLASS__ . '.Title', 'Archived pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ class CMSSiteTreeFilter_StatusDraftPages extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
return _t('SilverStripe\\CMS\\Controllers\\CMSSiteTreeFilter_StatusDraftPages.Title', 'Draft pages');
|
return _t(__CLASS__ . '.Title', 'Draft pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ class CMSSiteTreeFilter_StatusRemovedFromDraftPages extends CMSSiteTreeFilter
|
|||||||
|
|
||||||
public static function title()
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user