#68371Localize RTE Link Builder to use a (default) localization of link title
Description
Title of links in RTE Links are prefilled with an english string p.e. ‘Opens internal link in current window’
It would be nice to have a loclized string depending on the site-language and content-elements language. Actually a lot of stuff is localized when you change the site language but this is not handled yet in RTE.
I know I can override it myself but how about a pre-translated version of this title that respects the content-language.
OR this field remains empty by default and will be overwritten if empty during rendering with a localized default string.
Actually there are a lot of german sites that have ‘Opens internal link in current window’ as title for links.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 2
History 5
-
Susanne Moog changed category 08/06/15, 16:11
-
Riccardo De Contardi commented 03/07/17, 23:11
-
Riccardo De Contardi commented and changed attached file1.png attached file2.png 01/06/18, 21:31
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
-
Markus Klein changed assigned to Markus Klein 01/06/18, 21:39
-
Georg Ringer commented and changed status
NewClosed 08/01/24, 11:11the predefined link has been removed with #98275 therefore closing the issue
On v.8 the “title” field for links in CKEditor is empty