Bug #39271
closedAccessibility label translation
100%
Description
In the link popup, when selecting "external-link-new-window" (or another
style), the link title message is using the backend language instend of
content language.
In the page TSConfig I have "RTE.default.defaultContentLanguage = fr". I
also installed static_info_tables.
The problem exist for all languages except english (default).
I tried french as default and german as secondary, the bug exist for
both.
For english default or secondary everything work.
The problem come from the new languageDependencies variable in the TYPO3
language class. The RTE temporarily changes the backend language with
this line :
$GLOBALS['LANG']->lang = $this->contentTypo3Language;
But language class internals uses $this->languageDependencies instend of
$this->lang. Since languageDependencies is protected, it can only be set
by the lang->init() function. Also, we can't call the init() function
more than one time because it adds languages instead of replacing them.
As a temporary fix, we intanciated a local "language" object for the
content language.
(in class.tx_rtehtmlarea_browse_links.php) :
public function getLLContent($string) { $tempLL = t3lib_div::makeInstance('language'); $tempLL->init($this->contentTypo3Language); $LLString = $tempLL->sL($string); return $LLString; }