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:
@@ -203,7 +203,7 @@ PO.Item.prototype.toString = function () {
|
||||
lines.push('#, ' + flags.join(","));
|
||||
}
|
||||
|
||||
['msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) {
|
||||
['msgctxt', 'msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) {
|
||||
var text = that[keyword];
|
||||
if (text != null) {
|
||||
if (isArray(text) && text.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user