[Bug report] Icon added to translations file is rendered with extranious text #1948
-
Operating systemFedora 41 Publii version0.46.3 (build 17008) Issue typeFree plugin Bug descriptionThis relates to the Lucide Icons plugin used in the Persona_free theme. From the output, I strongly suspect that the issue is with the Lucide Icons plugin, but I have not examined the code. I was attempting to render the collapsed menu using a Lucide "menu" icon (a "hamburger"). The code in the umodified navbar.hbs partial reads:
The translation in the unmodified 'persona_free.lang.json' reads:
And I changed that to read:
After making my change, the output in each .html file reads:
THe SVG paths make the above hard to read. The problem occurs in the middle of the SVG stuff for the button, where it says:
That results in the the icon being rendered with the [">] as shown below: Steps to reproduce
Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
By the way, upon reflection, I think that what I SHOULD be doing is to change the navbar.hbs file to reference the icon, and leave the current translation of "Menu" in the aria-label. That has the advantages of being more accessible, and avoids this issue! I still think that what's happening is a bug, however :-) |
Beta Was this translation helpful? Give feedback.
-
This is not a bug; it is incorrect usage. You should not use this plugin in a language file - that is not what it was designed for. |
Beta Was this translation helpful? Give feedback.
This is not a bug; it is incorrect usage. You should not use this plugin in a language file - that is not what it was designed for.