No description
  • PHP 98.7%
  • Scheme 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-10-30 14:44:03 +01:00
_config ... 2022-05-04 10:02:55 +02:00
src SS6 Compatibility 2025-10-30 14:44:03 +01:00
templates Init 2020-01-13 10:47:02 +01:00
_config.php official deepl lib 2024-02-09 12:04:31 +01:00
composer.json Update composer.json 2025-05-14 13:25:13 +02:00
config.php Init 2020-01-13 10:47:02 +01:00
README.md Update README.md 2023-03-13 13:04:46 +01:00
README.txt Init 2020-01-13 10:47:02 +01:00

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; }