mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge remote-tracking branch 'origin/3.0'
This commit is contained in:
commit
2024e54f6b
@ -206,7 +206,7 @@ JS
|
||||
'<a class="ss-ui-button ss-ui-action ui-button-text-icon-primary ss-ui-button-ajax" data-icon="arrow-circle-double" title="%s" href="%s">%s</a>',
|
||||
_t('AssetAdmin.FILESYSTEMSYNCTITLE', 'Update the CMS database entries of files on the filesystem. Useful when new files have been uploaded outside of the CMS, e.g. through FTP.'),
|
||||
$this->Link('doSync'),
|
||||
_t('FILESYSTEMSYNC','Sync files')
|
||||
_t('AssetAdmin.FILESYSTEMSYNC','Sync files')
|
||||
)
|
||||
);
|
||||
} else {
|
||||
|
@ -468,8 +468,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
$addAction = $instance->i18n_singular_name();
|
||||
|
||||
// Get description
|
||||
$description = _t($class . '.DESCRIPTION');
|
||||
// Get description (convert 'Page' to 'SiteTree' for correct localization lookups)
|
||||
$description = _t((($class == 'Page') ? 'SiteTree' : $class) . '.DESCRIPTION');
|
||||
|
||||
if(!$description) {
|
||||
$description = $instance->uninherited('description');
|
||||
@ -484,7 +484,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
'AddAction' => $addAction,
|
||||
'Description' => $description,
|
||||
// TODO Sprite support
|
||||
'IconURL' => $instance->stat('icon')
|
||||
'IconURL' => $instance->stat('icon'),
|
||||
'Title' => singleton($class)->i18n_singular_name(),
|
||||
)));
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ class CMSPageAddController extends CMSPageEditController {
|
||||
$pageTypes = array();
|
||||
foreach($this->PageTypes() as $type) {
|
||||
$html = sprintf('<span class="page-icon class-%s"></span><strong class="title">%s</strong><span class="description">%s</span>',
|
||||
$type->getField('ClassName'),
|
||||
$type->getField('Title'),
|
||||
$type->getField('AddAction'),
|
||||
$type->getField('Description')
|
||||
);
|
||||
|
@ -163,7 +163,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
||||
$gridField = new GridField('Reports',false, $this->Reports(), $gridFieldConfig);
|
||||
$columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns');
|
||||
$columns->setDisplayFields(array(
|
||||
'title' => 'Title',
|
||||
'title' => _t('ReportAdmin.ReportTitle', 'Title'),
|
||||
));
|
||||
$columns->setFieldFormatting(array(
|
||||
'title' => '<a href=\"$Link\" class=\"cms-panel-link\">$value</a>'
|
||||
|
@ -2699,7 +2699,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
* @return String
|
||||
*/
|
||||
function i18n_singular_name() {
|
||||
return _t($this->class.'.SINGULARNAME', $this->singular_name());
|
||||
// Convert 'Page' to 'SiteTree' for correct localization lookups
|
||||
$class = ($this->class == 'Page') ? 'SiteTree' : $this->class;
|
||||
return _t($class.'.SINGULARNAME', $this->singular_name());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,6 +13,7 @@ en:
|
||||
CurrentFolderOnly: 'Limit to current folder?'
|
||||
DetailsView: Details
|
||||
FILES: Files
|
||||
FILESYSTEMSYNC: 'Sync files'
|
||||
FILESYSTEMSYNCTITLE: 'Update the CMS database entries of files on the filesystem. Useful when new files have been uploaded outside of the CMS, e.g. through FTP.'
|
||||
FROMTHEINTERNET: 'From the internet'
|
||||
FROMYOURCOMPUTER: 'From your computer'
|
||||
@ -236,6 +237,8 @@ en:
|
||||
REDIRECTTOPAGE: 'A page on your website'
|
||||
SINGULARNAME: 'Redirector Page'
|
||||
YOURPAGE: 'Page on your website'
|
||||
ReportAdmin:
|
||||
ReportTitle: Title
|
||||
ReportAdminForm:
|
||||
FILTERBY: 'Filter by'
|
||||
SearchForm:
|
||||
@ -394,8 +397,6 @@ en:
|
||||
PLURALNAME: 'Virtual Pags'
|
||||
PageTypNotAllowedOnRoot: 'Original page type "{type}" is not allowed on the root level for this virtual page'
|
||||
SINGULARNAME: 'Virtual Page'
|
||||
cms:
|
||||
FILESYSTEMSYNC: 'Sync files'
|
||||
CMSFileAddController:
|
||||
MENUTITLE: Files
|
||||
CMSPageEditController:
|
||||
|
Loading…
x
Reference in New Issue
Block a user