@@ -45,50 +45,50 @@ |
||
| 45 | 45 | $fields = FieldList::create([ |
| 46 | 46 | LiteralField::create( |
| 47 | 47 | 'FileWarningHeader', |
| 48 | - '<div class="alert alert-warning">' . _t( |
|
| 49 | - __CLASS__ . '.FileWarningHeader', |
|
| 48 | + '<div class="alert alert-warning">'._t( |
|
| 49 | + __CLASS__.'.FileWarningHeader', |
|
| 50 | 50 | 'Warning: import will remove all content and subpages of this page.' |
| 51 | - ) . '</div>', |
|
| 51 | + ).'</div>', |
|
| 52 | 52 | 4 |
| 53 | 53 | ), |
| 54 | 54 | $splitHeader = DropdownField::create( |
| 55 | 55 | 'DocumentConversionSettings-SplitHeader', |
| 56 | 56 | _t( |
| 57 | - __CLASS__ . '.SplitHeader', |
|
| 57 | + __CLASS__.'.SplitHeader', |
|
| 58 | 58 | 'Split document into pages' |
| 59 | 59 | ), |
| 60 | 60 | [ |
| 61 | - 0 => _t(__CLASS__ . '.No', 'no'), |
|
| 62 | - 1 => _t(__CLASS__ . '.EachH1', 'for each heading 1'), |
|
| 63 | - 2 => _t(__CLASS__ . '.EachH2', 'for each heading 2') |
|
| 61 | + 0 => _t(__CLASS__.'.No', 'no'), |
|
| 62 | + 1 => _t(__CLASS__.'.EachH1', 'for each heading 1'), |
|
| 63 | + 2 => _t(__CLASS__.'.EachH2', 'for each heading 2') |
|
| 64 | 64 | ] |
| 65 | 65 | ), |
| 66 | 66 | $keepSource = CheckboxField::create( |
| 67 | 67 | 'DocumentConversionSettings-KeepSource', |
| 68 | 68 | _t( |
| 69 | - __CLASS__ . '.KeepSource', |
|
| 69 | + __CLASS__.'.KeepSource', |
|
| 70 | 70 | 'Keep the original document. Adds a link to it on TOC, if enabled.' |
| 71 | 71 | ) |
| 72 | 72 | ), |
| 73 | 73 | $chosenFolderID = TreeDropdownField::create( |
| 74 | 74 | 'DocumentConversionSettings-ChosenFolderID', |
| 75 | - _t(__CLASS__ . '.ChooseFolder', 'Choose a folder to save this file'), |
|
| 75 | + _t(__CLASS__.'.ChooseFolder', 'Choose a folder to save this file'), |
|
| 76 | 76 | Folder::class |
| 77 | 77 | ), |
| 78 | 78 | $includeTOC = CheckboxField::create( |
| 79 | 79 | 'DocumentConversionSettings-IncludeTOC', |
| 80 | - _t(__CLASS__ . '.IncludeTOC', 'Replace this page with a Table of Contents.') |
|
| 80 | + _t(__CLASS__.'.IncludeTOC', 'Replace this page with a Table of Contents.') |
|
| 81 | 81 | ), |
| 82 | 82 | $publishPages = CheckboxField::create( |
| 83 | 83 | 'DocumentConversionSettings-PublishPages', |
| 84 | 84 | _t( |
| 85 | - __CLASS__ . '.publishPages', |
|
| 85 | + __CLASS__.'.publishPages', |
|
| 86 | 86 | 'Publish modified pages (not recommended unless you are sure about the conversion outcome)' |
| 87 | 87 | ) |
| 88 | 88 | ), |
| 89 | 89 | $this->innerField = ImportField::create( |
| 90 | 90 | 'ImportedFromFile', |
| 91 | - _t(__CLASS__ . '.ImportedFromFile', 'Import content from a word document') |
|
| 91 | + _t(__CLASS__.'.ImportedFromFile', 'Import content from a word document') |
|
| 92 | 92 | ) |
| 93 | 93 | ]); |
| 94 | 94 | |