From 74f16ead499e54834b2cc15ffdb71f327cb13081 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 9 Jan 2013 13:06:15 +0530 Subject: [PATCH] fixes in translate --- public/js/wn/translate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/wn/translate.js b/public/js/wn/translate.js index 1e382b46a4..e43630495f 100644 --- a/public/js/wn/translate.js +++ b/public/js/wn/translate.js @@ -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) {