Skip to content
Snippets Groups Projects
Commit 6498a53a authored by Austin King's avatar Austin King
Browse files

gettext should return msgid in case of empty string

parent f4ff6f1a
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
}
......
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