/*
*@description  Class to manage mlg in javascript
*@author Natale Mazza
*@copyright goadv 2010
* $Id: translate.js,v 1.2 2010-05-20 08:29:11 simonetti Exp $
*/

function Language()
{
    this.lang = '';
    this.debug = false;
}


Language.prototype.getText = function (label)
{
    if(!this.debug){
        $.ajax({
            type:"GET",
            url:"XMLHttp/request.php?type=translate&value="+label,
            dataType:"text",
            cache:false,
            async:false,
            success:function(msg){
                text = msg;
            }
        });
    } else {
        text = label;
    }
    return text;
}
L = new Language();

