I'm using your great plugin on a site that also requires some images to be display in the local language, along with the alternative text.
My quick and dirty implementation based on the existing code is below.
if (elem.is('img')) {
value = valueForKey(key+'.alt', data);
if (value) {
elem.attr("alt", value);
}
value = valueForKey(key+'.src', data);
if (value) {
elem.attr("src", value);
}
}
I'm using your great plugin on a site that also requires some images to be display in the local language, along with the alternative text.
My quick and dirty implementation based on the existing code is below.