tml-js-browser
Advanced tools
Comparing version 0.4.63 to 0.4.64
@@ -222,5 +222,11 @@ /** | ||
replaceAttributes: function(node, attr){ | ||
var tml = node.getAttribute(attr); | ||
var data = this.tokens; | ||
var translation = this.translateTml(tml, null, true); | ||
var tml = node.getAttribute(attr); | ||
var data = this.tokens; | ||
var translation = this.translateTml(tml, null, true); | ||
var translatables = this.getOption("translatable_elements"); | ||
// check if node is a translatable element | ||
if(translatables && !dom.matchesSelectors(node, translatables, true)){ | ||
return false; | ||
} | ||
@@ -227,0 +233,0 @@ node.setAttribute(attr, translation); |
{ | ||
"name": "tml-js-browser", | ||
"description": "Translation plugin for browsers.", | ||
"version": "0.4.63", | ||
"version": "0.4.64", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Michael Berkovich", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
576292
12863