Skip to content

Commit

Permalink
Commens are saved to *.po file on save() call
Browse files Browse the repository at this point in the history
  • Loading branch information
drbeep committed May 27, 2015
1 parent a539d1c commit f925891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/po.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ PO.Item.prototype.toString = function() {
});
}

if (this.comments.length > 0) {
lines = lines.concat(this.comments.map(function(x) { return "# " + x; }));
}

['msgid', 'msgid_plural', 'msgstr'].forEach(function(keyword) {
var text = that[keyword];
if (text != null) {
Expand Down

0 comments on commit f925891

Please sign in to comment.