Skip to content
Snippets Groups Projects
Commit afae125d authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix issue #2011

parent c23cfe5f
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,10 @@ exports.abide = function (options) { ...@@ -120,7 +120,10 @@ exports.abide = function (options) {
resp.local('lang', 'db-LB'); resp.local('lang', 'db-LB');
} else if (translations[locale]) { } else if (translations[locale]) {
gt = function(sid) { 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 { } else {
gt = function(a) { return a; } gt = function(a) { return a; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment