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) {
// 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(