Project

General

Profile

Actions

Bug #100776

closed

TsConfig tt_content_defValues translation

Added by Benni Achenbach over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2023-04-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
tsconfig localization
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

i ran into a problem with Typo3 v12 where the translation in the tsconfig in tt_content_defValues is returned as is.
It worked perfectly in Typo3 v11.5 with the following line in typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

$wizardItems[$key]['params'] .= '&defVals[tt_content][' . $fN . ']=' . rawurlencode($this->getLanguageService()->sL($fV));

it was removed in 12.4 but i fixed it with

$wizardItems[$key]['tt_content_defValues'][$fieldName] = rawurlencode($this->getLanguageService()->sL($value));

in line 330 in vendor/typo3/cms-backend/Classes/Controller/ContentElement/NewContentElementController.php

maybe someone could take a look at that.
Thanks.

Actions

Also available in: Atom PDF