From d7645d7f219410da69698223c0d673d68cb51b1b Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 12 Mar 2013 15:45:39 -0400 Subject: [PATCH] fix locale.js --- js/lib/locale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/locale.js b/js/lib/locale.js index 91b3818a9..04d9025e7 100644 --- a/js/lib/locale.js +++ b/js/lib/locale.js @@ -18,7 +18,7 @@ function t(s, o, loc) { if (rep !== undefined) { if (o) for (var k in o) rep = rep.replace('{' + k + '}', o[k]); return rep; - } else if (o.default) { + } else if (o && o.default) { return o.default; } else { var missing = 'Missing translation: ' + s;