Commit a0effc70 authored by Mateusz Uzdowski's avatar Mateusz Uzdowski

Merge branch 'pulls/globalisation' of /home/git/repositories/silverstripe/documentconverter

parents 7b9b03ab f284d5b3
......@@ -23,13 +23,50 @@ class DocumentImportField extends CompositeField {
Requirements::javascript('documentconverter/javascript/DocumentImportField.js');
$fields = new FieldList(array(
new HeaderField('FileWarningHeader', 'Warning: import will remove all content and subpages of this page.', 4),
$splitHeader = new DropdownField('DocumentImportField-SplitHeader', 'Split document into pages', array(0 => 'no', 1 => 'for each heading 1', 2 => 'for each heading 2')),
$keepSource = new CheckboxField('DocumentImportField-KeepSource', 'Keep the original document. Adds a link to it on TOC, if enabled.'),
$chosenFolderID = new TreeDropdownField('DocumentImportField-ChosenFolderID','Choose a folder to save this file', 'Folder'),
$includeTOC = new CheckboxField('DocumentImportField-IncludeTOC', 'Replace this page with a Table of Contents.'),
$publishPages = new CheckboxField('DocumentImportField-PublishPages', 'Publish modified pages (not recommended unless you are sure about the conversion outcome)'),
$this->innerField = new DocumentImportInnerField('ImportedFromFile', 'Import content from a word document'),
new HeaderField(
'FileWarningHeader',
_t(
'DocumentImportField.FileWarningHeader',
'Warning: import will remove all content and subpages of this page.'
),
4
),
$splitHeader = new DropdownField(
'DocumentImportField-SplitHeader',
'Split document into pages',
array(
0 => _t('DocumentImportField.No','no'),
1 => _t('DocumentImportField.EachH1','for each heading 1'),
2 => _t('DocumentImportField.EachH2','for each heading 2')
)
),
$keepSource = new CheckboxField(
'DocumentImportField-KeepSource',
_t(
'DocumentImportField.KeepSource',
'Keep the original document. Adds a link to it on TOC, if enabled.'
)
),
$chosenFolderID = new TreeDropdownField(
'DocumentImportField-ChosenFolderID',
_t('DocumentImportField.ChooseFolder', 'Choose a folder to save this file'),
'Folder'
),
$includeTOC = new CheckboxField(
'DocumentImportField-IncludeTOC',
_t('DocumentImportField.IncludeTOC', 'Replace this page with a Table of Contents.')
),
$publishPages = new CheckboxField(
'DocumentImportField-PublishPages',
_t(
'DocumentImportField.publishPages',
'Publish modified pages (not recommended unless you are sure about the conversion outcome)'
)
),
$this->innerField = new DocumentImportInnerField(
'ImportedFromFile',
_t('DocumentImportField.ImportedFromFile','Import content from a word document')
),
));
// Prevent the warning popup that appears when navigating away from the page.
......
......@@ -4,6 +4,16 @@ en:
SERVERUNREACHABLE: 'Could not contact document conversion server. Please try again later or contact your system administrator.'
DocumentConverterDecorator:
ImportTab: Import
DocumentImportField:
ChooseFolder: 'Choose a folder to save this file'
EachH1: 'for each heading 1'
EachH2: 'for each heading 2'
FileWarningHeader: 'Warning: import will remove all content and subpages of this page.'
ImportedFromFile: 'Import content from a word document'
IncludeTOC: 'Replace this page with a Table of Contents.'
KeepSource: 'Keep the original document. Adds a link to it on TOC, if enabled.'
No: no
publishPages: 'Publish modified pages (not recommended unless you are sure about the conversion outcome)'
FileIFrameField:
ATTACHONCESAVED2: 'Files can be attached once you have saved the record for the first time.'
UploadField:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment