Fixed error in loading.

This commit is contained in:
Mike Holly 2011-12-26 18:22:05 -08:00
parent a4dffb0ac8
commit 1bae2deab0
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ PO.load = function(filename, callback) {
parts.forEach(function(part){ parts.forEach(function(part){
if (part.length < 1) return; if (part.length < 1) return;
var item = PO.Item.parse(part); var item = PO.Item.parse(part);
po.items.push(item.toString()); po.items.push(item);
}); });
callback && callback(po); callback && callback(po);

View File

@ -1,11 +1,11 @@
{ {
"name" : "node-po", "name" : "node-po",
"description" : "Simple library for loading and saving Gettext PO files.", "description" : "Simple library for loading and saving Gettext PO files.",
"version" : "0.1", "version" : "0.0.2",
"author" : "Mike Holly", "author" : "Mike Holly",
"homepage" : "http://github.com/mikejholly/node-po", "homepage" : "http://github.com/mikejholly/node-po",
"repository" : {"type" : "git", "url" : "http://github.com/mikejholly/node-po.git"}, "repository" : {"type" : "git", "url" : "http://github.com/mikejholly/node-po.git"},
"dependencies" : [], "dependencies" : [],
"main" : "./lib/po", "main" : "./lib/po",
"keywords" : ["i18n", "l10n", "gettext", "mo" "po"] "keywords" : ["i18n", "l10n", "gettext", "mo", "po"]
} }