fix default value of msgctxt field

I added a few more edge-cases to the tests for the new msgctxt field and
revealed a bug during that. The default value has been set to empty
string, but should have been null, since the spec says, this field is
optional.
This commit is contained in:
Julian Bäume
2014-01-22 14:10:15 +01:00
parent abca810905
commit a5f3059661
2 changed files with 24 additions and 6 deletions

View File

@@ -164,7 +164,7 @@ PO.parse = function (data) {
PO.Item = function () {
this.msgid = '';
this.msgctxt = '';
this.msgctxt = null;
this.references = [];
this.msgid_plural = null;
this.msgstr = [];