implement writing msgctxt field
since the parser can extract this information, now, the writer should also be able to write it back to a po file
This commit is contained in:
@@ -37,4 +37,11 @@ describe('Write', function () {
|
||||
var str = po.toString();
|
||||
assertHasLine(str, "msgstr \"Source\"");
|
||||
});
|
||||
|
||||
it('write msgctxt', function () {
|
||||
var input = fs.readFileSync(__dirname + '/fixtures/big.po', 'utf8');
|
||||
var po = PO.parse(input);
|
||||
var str = po.toString();
|
||||
assertHasLine(str, 'msgctxt "folder action"');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user