mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
commit
096c006b6a
@ -1085,12 +1085,11 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
if($canAddLocale) {
|
if($canAddLocale) {
|
||||||
// Only add create button if new languages are available
|
// Only add create button if new languages are available
|
||||||
$tab->push(
|
$tab->push(
|
||||||
$createButton = InlineFormAction::create(
|
$createButton = FormAction::create(
|
||||||
'createtranslation',
|
'createtranslation',
|
||||||
_t('Translatable.CREATEBUTTON', 'Create')
|
_t('Translatable.CREATEBUTTON', 'Create')
|
||||||
)->addExtraClass('createTranslationButton')
|
)->addExtraClass('createTranslationButton')
|
||||||
);
|
);
|
||||||
$createButton->includeDefaultJS(false); // not fluent API...
|
|
||||||
} else {
|
} else {
|
||||||
$tab->removeByName('NewTransLang');
|
$tab->removeByName('NewTransLang');
|
||||||
$tab->push(new LiteralField(
|
$tab->push(new LiteralField(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user