@@ -102,27 +102,27 @@ public function updateCMSFields(FieldList $fields)
102
102
array (
103
103
TextField::create (
104
104
'EmbedTitle ' ,
105
- _t (__CLASS__ . '.TITLE.LABEL ' , 'Title ' )
105
+ _t (__CLASS__ . '.TITLELABEL ' , 'Title ' )
106
106
)
107
107
->setDescription (
108
- _t (__CLASS__ . '.TITLE.DESCRIPTION ' , 'Optional. Will be auto-generated if left blank ' )
108
+ _t (__CLASS__ . '.TITLEDESCRIPTION ' , 'Optional. Will be auto-generated if left blank ' )
109
109
),
110
110
TextField::create (
111
111
'EmbedSourceURL ' ,
112
- _t (__CLASS__ . '.SOURCEURL.LABEL ' , 'Source URL ' )
112
+ _t (__CLASS__ . '.SOURCEURLLABEL ' , 'Source URL ' )
113
113
)
114
114
->setDescription (
115
- _t (__CLASS__ . '.SOURCEURL.DESCRIPTION ' , 'Specify a external URL ' )
115
+ _t (__CLASS__ . '.SOURCEURLDESCRIPTION ' , 'Specify a external URL ' )
116
116
),
117
117
UploadField::create (
118
118
'EmbedImage ' ,
119
- _t (__CLASS__ . '.IMAGE.LABEL ' , 'Image ' )
119
+ _t (__CLASS__ . '.IMAGELABEL ' , 'Image ' )
120
120
)
121
121
->setFolderName ($ owner ->EmbedFolder )
122
122
->setAllowedExtensions (array ('jpg ' ,'png ' ,'gif ' )),
123
123
TextareaField::create (
124
124
'EmbedDescription ' ,
125
- _t (__CLASS__ . '.DESCRIPTION.LABEL ' , 'Description ' )
125
+ _t (__CLASS__ . '.DESCRIPTIONLABEL ' , 'Description ' )
126
126
)
127
127
)
128
128
);
@@ -132,7 +132,7 @@ public function updateCMSFields(FieldList $fields)
132
132
'Root. ' . $ tab ,
133
133
ReadonlyField::create (
134
134
'EmbedType ' ,
135
- _t (__CLASS__ . '.TYPE.LABEL ' , 'Type ' )
135
+ _t (__CLASS__ . '.TYPELABEL ' , 'Type ' )
136
136
),
137
137
'EmbedImage '
138
138
);
@@ -219,7 +219,7 @@ public function validate(ValidationResult $validationResult)
219
219
$ string = implode (', ' , $ allowed_types );
220
220
$ string = (substr ($ string , -1 ) == ', ' ) ? substr_replace ($ string , ' or ' , -1 ) : $ string ;
221
221
$ validationResult ->error (
222
- _t (__CLASS__ . '.ERROR.NOTSTRING ' , "The embed content is not a $ string " )
222
+ _t (__CLASS__ . '.ERRORNOTSTRING ' , "The embed content is not a $ string " )
223
223
);
224
224
}
225
225
}
0 commit comments