Skip to content

Cannot translate html page with details element #142

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

Open
mattgarrish opened this issue Jun 21, 2024 · 1 comment
Open

Cannot translate html page with details element #142

mattgarrish opened this issue Jun 21, 2024 · 1 comment

Comments

@mattgarrish
Copy link

Summary

If an html page contains a details element, whether opened or collapsed by default, its body is not translatable in the gitlocalize interface.

Steps to reproduce

  • Create an html page with a details element in the body
  • Open the page to translate

Repository URL

The following page uses details elements for descriptions:
https://github.com/daisy/kb/blob/main/publishing/docs/epub/validation/smart.html

What is the current bug behavior?

Only the Head section is translatable. The Body cannot be clicked on to translate the text regardless of whether the text is in the details element or not.

What is the expected correct behavior?

All the text of the page should be translatable, including within the details element.

@svasilenkov
Copy link

@mattgarrish Thank you for the feedback. Unfortunately, GitLocalize doesn't work very well with HTML at the moment. If possible, please use other supported formats to translate your content.

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

No branches or pull requests

2 participants