diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 83f3481..910e251 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -989,11 +989,23 @@ class Translatable extends DataExtension implements PermissionProvider { ) ); $createButton->includeDefaultJS(false); + + if ( count($langDropdown->getSource()) < 1 ) { + $fields->insertAfter( + new LiteralField( + 'AllTransCreated', + _t('Translatable.ALLCREATED', 'All allowed translations have been created.') + ), + 'CreateTransHeader' + ); + $fields->removeByName('NewTransLang'); + $fields->removeByName('createtranslation'); + } if($alreadyTranslatedLocales) { $fields->addFieldToTab( 'Root.Translations', - new HeaderField('ExistingTransHeader', _t('Translatable.EXISTING', 'Existing translations:'), 3) + new HeaderField('ExistingTransHeader', _t('Translatable.EXISTING', 'Existing translations'), 3) ); $existingTransHTML = '