Fixed error in loading.
This commit is contained in:
parent
a4dffb0ac8
commit
1bae2deab0
@ -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);
|
||||||
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user