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; }
Updated by Stanislas Rolland about 12 years ago
- Status changed from New to Accepted
- Assignee set to Stanislas Rolland
- Target version set to 4.7.5
Updated by Gerrit Code Review about 12 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15650
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/15659
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/15660
Updated by Stanislas Rolland about 12 years ago
- Target version changed from 4.7.5 to 4.6.13
Updated by Stanislas Rolland about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b0ed51ced1bdc233597a8d462ebd78795f8acc4f.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed