jquery-localize
jquery-localize copied to clipboard
Using translation in title and alt attributes
Hey again,
is it possible to use translations in title and alt attributes?
Thanks!
Ok, I found out how to localize the title:
<a href="#" title="test title">Test link</a>
"start": {
"title": "test title in french"
}
But how do I combine that with the localization of the link text Test link?
This doesn’t work:
"start": {
"Test link in french",
"title": "test title in french"
}
Alright, nevermind – I found it out by myself: You need to write text as the key.
"start": {
"text": "Test link in french",
"title": "test title in french"
}
This works for me. Thanks. But, it's breaking the tooltip