/*!
 * jQuery Multi Language v1.0.0
 * https://github.com/K-Software/jquery-multi-language
 *
 * Copyright 2013 Simone Cappabianca - K-Software
 * Released under the MIT license
 */
 (function (factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as anonymous module.
        define(['jquery'], factory);
    } else {
        // Browser globals.
        factory(jQuery);
    }
}(function($) {
   
    $.loadLanguage = function loadLanguage() {
        var language = $.cookie('site-language');
        if (language.length == 0) {
            language = 'ENG';
        }
        $.ajax({
            url: 'languages.xml',
            success: function(xml) {
                $(xml).find('translation').each(function(){
                    var id = $(this).attr('id');
                    var text = $(this).find(language).text();
                    $("." + id).html(text);
                });
            }
        });
    }
    
    $.changeLanguage = function changeLanguage() {
        var language = $(this).attr('lang');
        $.cookie('site-language', language, { expires: 7, path: '/' });
        $.ajax({
            url: 'languages.xml',
            success: function(xml) {
                $(xml).find('translation').each(function(){
                    var id = $(this).attr('id');
                    var text = $(this).find(language).text();
                    $("." + id).html(text);
                });
            }
        });
    }
    
}));

@@ -426,16 +426,696 @@
 $) %7B%0A   
+ %0A    // Path and name of xml file%0A    var language_path = 'languages.xml';%0A    %0A    // Name of attribute %0A    var attribute_name = 'lang';%0A    %0A    // Name of cookie%0A    var cookie_name = 'site-language'; %0A    %0A    // Number of days before cookie expires%0A    var cookie_expire = 7%0A    %0A    $.setPathLanguage = function setPathLanguage(path) %7B%0A        language_path = path;%0A    %7D%0A    %0A    $.setNameAttribute = function setNameAttribute(name) %7B%0A        attribute_name = name;%0A    %7D%0A    %0A    $.setNameCookie = function setNameCookie(name) %7B%0A        cookie_name = name;%0A    %7D%0A    %0A    $.setExpireCookie = function setExpireCookie(numDays) %7B%0A        cookie_expire = numDays%0A    %7D%0A    
 %0A    $.l
@@ -1186,31 +1186,27 @@
 .cookie(
-'site-language'
+cookie_name
 );%0A     
@@ -1230,16 +1230,17 @@
 ength ==
+=
  0) %7B%0A  
@@ -1307,33 +1307,32 @@
        url: 
-'
 language
 s.xml',%0A    
@@ -1311,38 +1311,37 @@
    url: language
-s.xml'
+_path
 ,%0A            su
@@ -1722,22 +1722,30 @@
 s).attr(
-'lang'
+attribute_name
 );%0A     
@@ -1756,31 +1756,27 @@
 .cookie(
-'site-language'
+cookie_name
 , langua
@@ -1790,17 +1790,29 @@
 xpires: 
-7
+cookie_expire
 , path: 
@@ -1853,25 +1853,24 @@
    url: 
-'
 language
 s.xml',%0A
@@ -1861,22 +1861,21 @@
 language
-s.xml'
+_path
 ,%0A      

Update jQuery.multi.language.js