Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Translation of link titles #427

Open
sk-foresite opened this issue Jan 20, 2025 · 4 comments
Open

[FEATURE] Translation of link titles #427

sk-foresite opened this issue Jan 20, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@sk-foresite
Copy link

Is your feature request related to a problem? Please describe.
It seems that during the automatic translations titles in links are not translated. For example the following link with a German title, while the link-text itself is getting translated, the title attribute is not translated.
Image

Describe the solution you'd like
It would be great if titles of links could be translated automatically, all other content is getting translated correctly already.

Describe alternatives you've considered
Maybe there is already a configuration option to enable this feature, but I haven't found anything.

Additional context
I tested this on TYPO3 12.4 with the newest version of the Extension 5.0.0

@sk-foresite sk-foresite added the enhancement New feature or request label Jan 20, 2025
@calien666
Copy link
Member

Thank you for your issue and sorry for answering that late.

Is your link a separate field or is the link from inside the RTE? As separate fields won't be translated, RTE could. But as far as I know, DeepL ignores attributes inside HTML tags, which leads to this behavior.

It would be nice having a short data snippet to provide the given and expected result, as TYPO3 saves the values inside the database to take a closer look at this.

@sk-foresite
Copy link
Author

Thank you for your issue and sorry for answering that late.

Is your link a separate field or is the link from inside the RTE? As separate fields won't be translated, RTE could. But as far as I know, DeepL ignores attributes inside HTML tags, which leads to this behavior.

It would be nice having a short data snippet to provide the given and expected result, as TYPO3 saves the values inside the database to take a closer look at this.

Hello, thanks for your answer!

It is a link inside the RTE.

Here's an example how it is saved in the database:

<p>Test auf <a href="t3://page?uid=1736" title="Deutscher Titel">Deutsch</a></p>

and this is what I would expect to be the result after the translation:

<p>Test in <a href="t3://page?uid=1736" title="German Title">German</a></p>

but currently it doesn't translate the title-attribute:

<p>Test in <a href="t3://page?uid=1736" title="Deutscher Titel">German</a></p>

@sk-foresite
Copy link
Author

Is there any update on this, or maybe a workaround to configure DeepL to translate the attributes?

@calien666
Copy link
Member

Unfortunately, I currently have no idea how to handle this. If you have an y idea, feel free to comment your thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants