I write here the behavior I found with TYPO3 7.6.23 and 8.7.9:
Common setup¶
I used a TYPO3 installation with two languages:
- default (L=0) Italian
- L=1 english
and the usual minimal setup for 2 languages TYPO3:
TS Setup:
config{
htmlTag_setParams = class="no-js" lang="it"
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
linkVars =L(0-1)
sys_language_uid = 0
language = it
locale_all = it_IT.utf8
}
[globalVar = GP:L=1]
config{
htmlTag_setParams = class="no-js" lang="en"
sys_language_uid = 1
language = en
locale_all = en_EN.utf8
}
[global]
Page TSConfig:
RTE.default.proc.allowedClasses := addToList(page,page2)
RTE.default{
buttons.link.properties.class.allowedClasses := addToList(page,page2)
buttons.link.page.properties.class.default = page
}
RTE.classesAnchor {
page {
class = page
type = page
titleText = LLL:fileadmin/locallang.xlf:page.label.linkinternal
}
page2 {
class = external
type = url
titleText = LLL:fileadmin/locallang.xlf:page.label.linkinternal2
}
}
Of course the xlf file exists and the labels exist too.
Common test performed¶
- Create a page in default language (italian)
- translate it in english
- create a text content element
- add a link
- translate the CE
Results in TYPO3 7.6.23¶
When I open the wizard to create a new link , the label for class page is selected by default, but it is the one in english!. (expected result would be the italian - see attached file1.png) Oddly enough, when you switch to another class, then the correct label in italian is loaded, and if you switch it back to the previous class, then the correct label is loaded
When you translate the content in english and try to open the wizard for the link, it shows the label in italian (!), and even when selecting another class, the italian labels are always loaded
Results in TYPO3 8.7.9¶
When I open the wizard to create a new link , the label for class page is selected by default, but it is the one in english!. (expected result would be the italian - see attached file file2.png ). Even when choosing another class, it always stays in english and does not change to the correct value
The same behavior is replicated for the translated content