Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
fix issue #2011
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Jul 13, 2012
1 parent c23cfe5 commit afae125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit afae125

Please sign in to comment.