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

Frontend translation of strings in hidden tags corrupts HTML #45

Closed
maxxer opened this issue Dec 21, 2015 · 1 comment
Closed

Frontend translation of strings in hidden tags corrupts HTML #45

maxxer opened this issue Dec 21, 2015 · 1 comment

Comments

@maxxer
Copy link
Contributor

maxxer commented Dec 21, 2015

Given this code in frontend:

<input id="sys_txt_keyword" class="txt-keyword" type="text" placeholder="<?=Lx::t("trusthau", "Search Actions")?>"/>

the resulting HTML is

<input id="sys_txt_keyword" class="txt-keyword" type="text" placeholder="<span class="language-item" data-category="trusthau" data-hash="5fdaa9de184eb548e41805c2be378e9d" data-language_id="it-IT" data-params="[]">Search Actions</span>"/>

which is invalid...

I don't know if you want to fix Lx::t or just add in the documentation not to use it in non viewable strings

@lajax lajax closed this as completed in 80a580e Mar 24, 2016
@lajax
Copy link
Owner

lajax commented Mar 24, 2016

Thanks!

@moltam moltam mentioned this issue Apr 4, 2016
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