From afae125d952caa6141e9235c86d84cf378b4e3dc Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Fri, 13 Jul 2012 14:34:33 -0600
Subject: [PATCH] fix issue #2011

---
 lib/i18n.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/i18n.js b/lib/i18n.js
index 0210bb1bf..e81eb3298 100644
--- a/lib/i18n.js
+++ b/lib/i18n.js
@@ -120,7 +120,10 @@ exports.abide = function (options) {
       resp.local('lang', 'db-LB');
     } else if (translations[locale]) {
       gt = function(sid) {
-        return (translations[locale][sid] ? translations[locale][sid][1] : sid);
+        if (translations[locale][sid] && translations[locale][sid][1].length) {
+          sid = translations[locale][sid][1];
+        }
+        return sid;
       };
     } else {
       gt = function(a) { return a; }
-- 
GitLab