Comparing version 0.2.2 to 0.2.3
@@ -142,2 +142,6 @@ var fs = require('fs'), | ||
} | ||
else if (line.match(/^msgctxt/)) { // Context | ||
finish(); | ||
item.msgctxt = extract(line); | ||
} | ||
else { // Probably multiline string or blank | ||
@@ -164,2 +168,3 @@ if (line.length > 0) { | ||
this.msgid = ''; | ||
this.msgctxt = ''; | ||
this.references = []; | ||
@@ -203,3 +208,3 @@ this.msgid_plural = null; | ||
['msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) { | ||
['msgctxt', 'msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) { | ||
var text = that[keyword]; | ||
@@ -206,0 +211,0 @@ if (text != null) { |
{ | ||
"name": "pofile", | ||
"description": "Parse and serialize Gettext PO files.", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Ruben Vermeersch", |
@@ -95,2 +95,3 @@ # pofile - gettext .po parsing for JavaScript | ||
`item.flags.fuzzy == true`. | ||
* `msgctxt`: context of the message, an arbitrary string, can be used for disambiguation | ||
@@ -97,0 +98,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12795
197
165