node-gettext
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -66,3 +66,3 @@ var Iconv = require("iconv").Iconv, | ||
*/ | ||
this._pluralRules = false; | ||
this._pluralRules = "nplurals=2; plural=(n != 1)"; | ||
@@ -126,3 +126,5 @@ /** | ||
plurals = pluralsInfo[domain]; | ||
}else{ | ||
} | ||
if(!plurals || !plurals.plurals){ | ||
// defaults to the same rules as with 'en' | ||
@@ -132,6 +134,6 @@ this._pluralCount = 2; | ||
return; | ||
}else{ | ||
this._pluralCount = plurals.numbers.length; | ||
this._pluralRules = plurals.plurals; | ||
} | ||
this._pluralCount = plurals.numbers.length; | ||
this._pluralRules = plurals.plurals; | ||
}; | ||
@@ -138,0 +140,0 @@ |
{ | ||
"name": "node-gettext", | ||
"description": "Gettext client for Node.js to use .mo files for I18N", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"author" : "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "maintainers":[ |
87412
2519