
// dependencies: none

/**
 * Function: _
 *
 * Translate a codified string in the current locale value.
 *
 * Arguments:
 *     string_code - string, code of the word/sentence to translate
 *     string_value - string,optional, value to assign to that string_code
 *
 * Return:
 *     the string value associated to a string code, or the string code itself
 *       if no match is found
 **/

window._=(function(){
    var memory={},undefined;

    return function(string_code,string_value){
        if (string_value) memory[string_code]=string_value;
        return memory[string_code] || string_code;
    };

})();
