Project

General

Profile

Actions

Feature #94278

open

Make it possible to extend the creation of the translation button in backend to make additional translate buttons configurable

Added by Sybille Peters almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2021-06-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
localization,translation,events
Complexity:
Sprint Focus:

Description

Update : Issue title and text was updated: PageLayoutView is no longer used in 11 and only used in 9 or 10 if feature toggle fluidBasedPageModule is not set.

Now, the functionality can be found in

  • EXT:backend/Classes/View/BackendLayout/Grid/LanguageColumn.php
  • EXT:backend/Resources/Private/Partials/PageLayout/LanguageColumns.html

In any case, it would be nice to be able to extend the creation of the language button.

Requirements

Besides the "copy" and "translate" button and description, it should be possible to add additional buttons and they should be made configurable.

e.g. configure

# already existing core page TSconfig
mod.web_layout.localization.enableTranslate
mod.web_layout.localization.enableCopy
# NEW
mod.web_layout.localization.enableDeeplTranslate
...

What is missing

  • it is possible to override LanuageColumn.html, but there you would need access to the additional TSconfig.

Possible Application

Currently the translation deepltranslate / wv_deepltranslate extends the translation mode buttons. But they are not made configurable. TYPO3 already has functionality to configure the buttons via TSConfig (enableTranslate, enableCopy).

Currently, wv_translate always shows all the extra buttons which means 2 buttons for Google Translate and 2 buttons for DeepL translate.

But it is not possible to make this configurable currently - the buttons are always displayed.

More information is here: https://github.com/web-vision/wv_deepltranslate/issues/8#issuecomment-854608662


Files

deepl.png (111 KB) deepl.png Sybille Peters, 2021-06-04 10:45
Actions #1

Updated by Sybille Peters almost 3 years ago

  • Subject changed from Make it possible to extend the creation of the translation button in PageLayoutView::newLanguageButton to Make it possible to extend the creation of the translation button in backend to make additional translate buttons configurable
  • Description updated (diff)
Actions

Also available in: Atom PDF