coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

Update README.md #33

Closed hueitan closed 10 years ago

hueitan commented 10 years ago

I saw your code, that

key = elem.data("localize");
key || (key = elem.attr("rel").match(/localize\[(.*?)\]/)[1]);

data-localize and rel both working

coderifous commented 10 years ago

That code is there for backwards-compatibility with earlier versions of the plugin. The rel attribute stands for "link relation", and so using it for the purposes of this plugin was a bastardization.