gettext-parser
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -58,3 +58,3 @@ | ||
return lines.join("\n"); | ||
return lines.join("\n") + (lines.length ? "\n" : ""); | ||
} | ||
@@ -61,0 +61,0 @@ |
{ | ||
"name": "gettext-parser", | ||
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author" : "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "homepage": "http://github.com/andris9/gettext-parser", |
@@ -24,3 +24,3 @@ { | ||
"msgstr": [ | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:44+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=iso-8859-13\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: iso-8859-13" | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:44+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=iso-8859-13\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: iso-8859-13\n" | ||
] | ||
@@ -27,0 +27,0 @@ }, |
@@ -27,3 +27,3 @@ { | ||
"msgstr": [ | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:44+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=iso-8859-13\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: iso-8859-13" | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:44+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=iso-8859-13\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: iso-8859-13\n" | ||
] | ||
@@ -30,0 +30,0 @@ }, |
@@ -24,3 +24,3 @@ { | ||
"msgstr": [ | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:37+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: utf-8" | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:37+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: utf-8\n" | ||
] | ||
@@ -27,0 +27,0 @@ }, |
@@ -27,3 +27,3 @@ { | ||
"msgstr": [ | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:37+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: utf-8" | ||
"Project-Id-Version: gettext-parser\nReport-Msgid-Bugs-To: andris@node.ee\nPot-Creation-Date: 2012-05-18 14:28:00+03:00\nPo-Revision-Date: 2012-05-18 14:37+0300\nLast-Translator: Andris Reinman <andris@kreata.ee>\nLanguage-Team: gettext-parser <andris@node.ee>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nLanguage: \nPlural-Forms: nplurals=2; plural=(n!=1);\nX-Poedit-Language: Estonian\nX-Poedit-Country: ESTONIA\nX-Poedit-Sourcecharset: utf-8\n" | ||
] | ||
@@ -30,0 +30,0 @@ }, |
@@ -12,2 +12,3 @@ var gettextParser = require(".."), | ||
var compiled = gettextParser.mo.compile(this.json); | ||
fs.writeFileSync("/Users/andris/Desktop/utf8.mo", compiled); | ||
test.deepEqual(Array.prototype.slice.call(compiled), Array.prototype.slice.call(this.mo)); | ||
@@ -26,2 +27,3 @@ test.done(); | ||
var compiled = gettextParser.mo.compile(this.json); | ||
fs.writeFileSync("/Users/andris/Desktop/latin13.mo", compiled); | ||
test.deepEqual(Array.prototype.slice.call(compiled), Array.prototype.slice.call(this.mo)); | ||
@@ -28,0 +30,0 @@ test.done(); |
@@ -13,2 +13,3 @@ var gettextParser = require(".."), | ||
var parsed = gettextParser.mo.parse(this.mo); | ||
fs.writeFileSync("/Users/andris/Desktop/utf8-mo.json", parsed); | ||
test.deepEqual(parsed, this.json); | ||
@@ -28,2 +29,3 @@ test.done(); | ||
var parsed = gettextParser.mo.parse(this.mo); | ||
fs.writeFileSync("/Users/andris/Desktop/latin13-mo.json", parsed); | ||
test.deepEqual(parsed, this.json); | ||
@@ -30,0 +32,0 @@ test.done(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
60453
1469