Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Fixed #1 - script leaves original strings as is in this case if it translation is empty
  • Loading branch information
divampo committed Feb 27, 2015
2 parents 0bf1273 + 36dfa52 commit 1f7568c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/lib/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ exports.init = function(grunt) {
return;
}
});
return string;
return string !== null && string.msgstr[0] != '' ? string : null;
};

exports.Translator = Translator;
Expand Down

0 comments on commit 1f7568c

Please sign in to comment.