1
votes

I'm using TYPO3 8 LTS and trying to remove the String "[Translate to XY]", when create translated content and pages.

In earlier TYPO3 versions it was possible to solve this with the following code in extTables.php:

$TCA['tt_content']['columns']['bodytext']['l10n_mode'] = '';
$TCA['tt_content']['columns']['header']['l10n_mode'] = '';

(Link: https://sankartypo3.wordpress.com/2012/08/23/how-to-remove-translate-to-and-copy-tags-in-typo3/)

I've tried it with same code in ext_tables.php and TCA/Overrides/tt_content.php. => That didn't work for me.

Have anyone an idea how to solve this or the new way to do it?

best regards

3

3 Answers

2
votes

Replace $TCA with $GLOBALS['TCA'] inside Configuration/TCA/Overrides/tt_content.php:

$GLOBALS['TCA']['tt_content']['columns']['bodytext']['l10n_mode'] = '';
$GLOBALS['TCA']['tt_content']['columns']['header']['l10n_mode'] = '';

Alternatively you could set an empty string with Page TSconfig:

TCEMAIN.translateToMessage =
1
votes

Thanks @sebkIn

Remove "[Translate to XY:]" from translated content

Replace $TCA with $GLOBALS['TCA'] inside Configuration/TCA/Overrides/tt_content.php:

$GLOBALS['TCA']['tt_content']['columns']['bodytext']['l10n_mode'] = '';

$GLOBALS['TCA']['tt_content']['columns']['header']['l10n_mode'] = '';

Remove "[Translate to XY:]" from translated pagetitle

$GLOBALS['TCA']['pages_language_overlay']['columns']['title']['l10n_mode'] = 'exclude';
0
votes
TCEMAIN.table.pages.disablePrependAtCopy = 1
TCEMAIN.table.tt_content.disablePrependAtCopy = 1

https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/PageTsconfig/TceMain.html#translatetomessage