Skip to content

innomedia/deepl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepL

Add this to Page

public function getCMSActions() { $fields = parent::getCMSActions(); $tmp = explode('_', $this->Locale); $lang = strtoupper($tmp[0]); if (Deepl::canTranslate($lang)) { $fields->fieldByName("MajorActions")->push( ConfirmationFormAction::create("doTranslate","Übersetzen")->addExtraClass("btn-primary") ); } return $fields; }