mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update labels with more appropriate text
This commit is contained in:
parent
cfee2022ba
commit
d7e756c4f2
@ -224,8 +224,8 @@ class HTMLEditorField_Toolbar extends RequestHandler {
|
|||||||
// mimic the SiteTree::getMenuTitle(), which is bypassed when the search is performed
|
// mimic the SiteTree::getMenuTitle(), which is bypassed when the search is performed
|
||||||
$siteTree->setSearchFunction(array($this, 'siteTreeSearchCallback'));
|
$siteTree->setSearchFunction(array($this, 'siteTreeSearchCallback'));
|
||||||
|
|
||||||
$numericLabelTmpl = '<span class="step-label"><span class="flyout">%d</span><span class="arrow"></span>'
|
$numericLabelTmpl = '<span class="step-label"><span class="flyout">Step %d.</span>'
|
||||||
. '<strong class="title">%s</strong></span>';
|
. '<span class="title">%s</span></span>';
|
||||||
$form = new Form(
|
$form = new Form(
|
||||||
$this->controller,
|
$this->controller,
|
||||||
"{$this->name}/LinkForm",
|
"{$this->name}/LinkForm",
|
||||||
@ -242,20 +242,20 @@ class HTMLEditorField_Toolbar extends RequestHandler {
|
|||||||
'LinkType',
|
'LinkType',
|
||||||
DBField::create_field(
|
DBField::create_field(
|
||||||
'HTMLFragment',
|
'HTMLFragment',
|
||||||
sprintf($numericLabelTmpl, '1', _t('HTMLEditorField.LINKTO', 'Link to'))
|
sprintf($numericLabelTmpl, '1', _t('HTMLEditorField.LINKTYPE', 'Link type'))
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'internal' => _t('HTMLEditorField.LINKINTERNAL', 'Page on the site'),
|
'internal' => _t('HTMLEditorField.LINKINTERNAL', 'Link to a page on this site'),
|
||||||
'external' => _t('HTMLEditorField.LINKEXTERNAL', 'Another website'),
|
'external' => _t('HTMLEditorField.LINKEXTERNAL', 'Link to another website'),
|
||||||
'anchor' => _t('HTMLEditorField.LINKANCHOR', 'Anchor on this page'),
|
'anchor' => _t('HTMLEditorField.LINKANCHOR', 'Link to an anchor on this page'),
|
||||||
'email' => _t('HTMLEditorField.LINKEMAIL', 'Email address'),
|
'email' => _t('HTMLEditorField.LINKEMAIL', 'Link to an email address'),
|
||||||
'file' => _t('HTMLEditorField.LINKFILE', 'Download a file'),
|
'file' => _t('HTMLEditorField.LINKFILE', 'Link to download a file'),
|
||||||
),
|
),
|
||||||
'internal'
|
'internal'
|
||||||
),
|
),
|
||||||
LiteralField::create('Step2',
|
LiteralField::create('Step2',
|
||||||
'<div class="step2">'
|
'<div class="step2">'
|
||||||
. sprintf($numericLabelTmpl, '2', _t('HTMLEditorField.DETAILS', 'Details')) . '</div>'
|
. sprintf($numericLabelTmpl, '2', _t('HTMLEditorField.LINKDETAILS', 'Link details')) . '</div>'
|
||||||
),
|
),
|
||||||
$siteTree,
|
$siteTree,
|
||||||
TextField::create('external', _t('HTMLEditorField.URL', 'URL'), 'http://'),
|
TextField::create('external', _t('HTMLEditorField.URL', 'URL'), 'http://'),
|
||||||
|
12
lang/en.yml
12
lang/en.yml
@ -336,14 +336,16 @@ en:
|
|||||||
IMAGEWIDTHPX: Width
|
IMAGEWIDTHPX: Width
|
||||||
INSERTMEDIA: 'Insert media from'
|
INSERTMEDIA: 'Insert media from'
|
||||||
LINK: 'Insert Link'
|
LINK: 'Insert Link'
|
||||||
LINKANCHOR: 'Anchor on this page'
|
LINKANCHOR: 'Link to an anchor on this page'
|
||||||
LINKDESCR: 'Link description'
|
LINKDESCR: 'Link description'
|
||||||
LINKEMAIL: 'Email address'
|
LINKEMAIL: 'Link to an email address'
|
||||||
LINKEXTERNAL: 'Another website'
|
LINKEXTERNAL: 'Link to another website'
|
||||||
LINKFILE: 'Download a file'
|
LINKFILE: 'Link to download a file'
|
||||||
LINKINTERNAL: 'Page on the site'
|
LINKINTERNAL: 'Link to a page on this site'
|
||||||
LINKOPENNEWWIN: 'Open link in a new window?'
|
LINKOPENNEWWIN: 'Open link in a new window?'
|
||||||
LINKTO: 'Link to'
|
LINKTO: 'Link to'
|
||||||
|
LINKTYPE: 'Link type'
|
||||||
|
LINKDETAILS: 'Link details'
|
||||||
PAGE: Page
|
PAGE: Page
|
||||||
SUBJECT: 'Email subject'
|
SUBJECT: 'Email subject'
|
||||||
URL: URL
|
URL: URL
|
||||||
|
Loading…
Reference in New Issue
Block a user