﻿///<reference path="jquery-1.2.3.min.js"/>


$(document).ready(function(){
    
    $('.localize').each(function(){
        var key = $.trim(this.innerHTML).replace(/&amp;/g,"&");
        if (key.length == 0) return "NULL localization KEY";
        
        var value = getLocalizedText(key);
        if (value == null || value.length == 0)
        {
            if (window.console){console.log(key + ' --> NULL or EMPTY');}
            return key;
        }
        
        if (window.console){console.log(key + ' --> ' + value);}        
        this.innerHTML = value.replace(/\n/g,"<br/>");
    });

});