From 6498a53a82aeb39007205232da69c1c080751961 Mon Sep 17 00:00:00 2001 From: Austin King <shout@ozten.com> Date: Thu, 19 Jan 2012 12:41:03 -0800 Subject: [PATCH] gettext should return msgid in case of empty string --- resources/static/shared/gettext.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/static/shared/gettext.js b/resources/static/shared/gettext.js index d93f1d5b5..46cca99b1 100644 --- a/resources/static/shared/gettext.js +++ b/resources/static/shared/gettext.js @@ -7,7 +7,8 @@ function Gettext(params) { gettext: function (msgid) { if (json_locale_data && json_locale_data["client"]) { var dict = json_locale_data["client"]; - if (dict[msgid] && dict[msgid].length >= 2) { + if (dict[msgid] && dict[msgid].length >= 2 && + dict[msgid][1].trim() != "") { return dict[msgid][1]; } } -- GitLab