|
|
@ -298,37 +298,6 @@ $('.button-group').each( function( i, buttonGroup ) { |
|
|
|
})(jQuery); |
|
|
|
} |
|
|
|
</script> |
|
|
|
<script> |
|
|
|
$(document).ready(function() { |
|
|
|
if(localStorage.getItem('language') != null) { |
|
|
|
language = localStorage.getItem('language'); |
|
|
|
$.ajax({ |
|
|
|
url: '/translations/' + language + '.xml', |
|
|
|
success: function(xml) { |
|
|
|
$(xml).find('translation').each(function(){ |
|
|
|
var id = $(this).attr('id'); |
|
|
|
var text = $(this).text(); |
|
|
|
$("." + id).html(text); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
function testch(id) { |
|
|
|
localStorage.setItem('language', id); |
|
|
|
language = id |
|
|
|
$.ajax({ |
|
|
|
url: '/translations/' + language + '.xml', |
|
|
|
success: function(xml) { |
|
|
|
$(xml).find('translation').each(function(){ |
|
|
|
var id = $(this).attr('id'); |
|
|
|
var text = $(this).text(); |
|
|
|
$("." + id).html(text); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
</body> |
|
|
|
</html> |
|
|
|