old_contents: /*!
   * 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);
                  });
              }
          });
      }
      
  }));
  
new_contents: /*!
   * 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($) {
      
      // Path and name of xml file
      var language_path = 'languages.xml';
      
      // Name of attribute 
      var attribute_name = 'lang';
      
      // Name of cookie
      var cookie_name = 'site-language'; 
      
      // Number of days before cookie expires
      var cookie_expire = 7
      
      $.setPathLanguage = function setPathLanguage(path) {
          language_path = path;
      }
      
      $.setNameAttribute = function setNameAttribute(name) {
          attribute_name = name;
      }
      
      $.setNameCookie = function setNameCookie(name) {
          cookie_name = name;
      }
      
      $.setExpireCookie = function setExpireCookie(numDays) {
          cookie_expire = numDays
      }
      
      $.loadLanguage = function loadLanguage() {
          var language = $.cookie(cookie_name);
          if (language.length === 0) {
              language = 'ENG';
          }
          $.ajax({
              url: language_path,
              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(attribute_name);
          $.cookie(cookie_name, language, { expires: cookie_expire, path: '/' });
          $.ajax({
              url: language_path,
              success: function(xml) {
                  $(xml).find('translation').each(function(){
                      var id = $(this).attr('id');
                      var text = $(this).find(language).text();
                      $("." + id).html(text);
                  });
              }
          });
      }
      
  }));
  
subject: Update jQuery.multi.language.js