Merge pull request #1 from ismud/ismud-patch-1

Update Translatable.php
This commit is contained in:
ismud 2015-10-20 18:59:02 +02:00
commit 096c006b6a

View File

@ -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(