diff --git a/lib/i18n.js b/lib/i18n.js index 0210bb1bfadf6e798bb51b70e4ac70d7924ae060..e81eb32982b4f174b17bed1ab68e5b57e0e7269d 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; }