Project

General

Profile

Actions

Feature #68371

closed

Localize RTE Link Builder to use a (default) localization of link title

Added by Ralle Büchnitz over 9 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2015-07-20
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Files

file1.png (65.4 KB) file1.png Riccardo De Contardi, 2018-01-06 21:21
file2.png (51.7 KB) file2.png Riccardo De Contardi, 2018-01-06 21:28
Actions #1

Updated by Susanne Moog over 9 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #2

Updated by Riccardo De Contardi over 7 years ago

On v.8 the "title" field for links in CKEditor is empty

Updated by Riccardo De Contardi almost 7 years ago

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

Actions #4

Updated by Markus Klein almost 7 years ago

  • Assignee set to Markus Klein
Actions #5

Updated by Georg Ringer 4 months ago

  • Status changed from New to Closed

the predefined link has been removed with #98275 therefore closing the issue

Actions

Also available in: Atom PDF