Update Translatable.php

This commit is contained in:
ismud 2015-10-20 18:57:32 +02:00
parent 63190785e5
commit 3be368dd11

View File

@ -1085,12 +1085,11 @@ class Translatable extends DataExtension implements PermissionProvider {
if($canAddLocale) {
// Only add create button if new languages are available
$tab->push(
$createButton = InlineFormAction::create(
$createButton = FormAction::create(
'createtranslation',
_t('Translatable.CREATEBUTTON', 'Create')
)->addExtraClass('createTranslationButton')
);
$createButton->includeDefaultJS(false); // not fluent API...
} else {
$tab->removeByName('NewTransLang');
$tab->push(new LiteralField(