fixes in translate

This commit is contained in:
Nabin Hait 2013-01-09 13:06:15 +05:30
parent bbf086eb38
commit 74f16ead49

View file

@ -2,6 +2,7 @@
wn._messages = {};
wn._ = function(txt) {
if(!txt) return txt;
if(typeof(txt) != "string") return txt;
return wn._messages[txt.replace(/\n/g, "")] || txt;
};
wn.translate = function(obj, keys) {