gettext-parser
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -38,3 +38,3 @@ | ||
function upperCaseWords(str){ | ||
return (str || "").toLowerCase().trim().replace(/^(MIME|[a-z])|\-[a-z]/gi, function(str){ | ||
return (str || "").toLowerCase().trim().replace(/^(MIME|POT?(?=\-)|[a-z])|\-[a-z]/gi, function(str){ | ||
return str.toUpperCase(); | ||
@@ -41,0 +41,0 @@ }); |
{ | ||
"name": "gettext-parser", | ||
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"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\n" | ||
"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\n" | ||
"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\n" | ||
"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\n" | ||
"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,3 +12,2 @@ 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)); | ||
@@ -27,3 +26,2 @@ 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)); | ||
@@ -30,0 +28,0 @@ test.done(); |
@@ -13,3 +13,2 @@ var gettextParser = require(".."), | ||
var parsed = gettextParser.mo.parse(this.mo); | ||
fs.writeFileSync("/Users/andris/Desktop/utf8-mo.json", parsed); | ||
test.deepEqual(parsed, this.json); | ||
@@ -29,3 +28,2 @@ test.done(); | ||
var parsed = gettextParser.mo.parse(this.mo); | ||
fs.writeFileSync("/Users/andris/Desktop/latin13-mo.json", parsed); | ||
test.deepEqual(parsed, this.json); | ||
@@ -32,0 +30,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
60176
1465