node-gettext
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -222,5 +222,2 @@ | ||
this.domains[domain] = new GettextDomain(data); | ||
if(!this.current_textdomain){ | ||
this.current_textdomain = this.domains[domain]; | ||
} | ||
} | ||
@@ -231,2 +228,4 @@ | ||
this.current_textdomain = this.domains[domain]; | ||
}else{ | ||
this.current_textdomain = false; | ||
} | ||
@@ -233,0 +232,0 @@ } |
{ | ||
"name": "node-gettext", | ||
"description": "Gettext client for Node.js to use .mo files for I18N", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author" : "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "maintainers":[ |
@@ -30,4 +30,2 @@ # node-gettext | ||
The first language added will become the default language for Gettext functions. | ||
### Change default language - textdomain(domain) | ||
@@ -39,3 +37,3 @@ | ||
### Load a string from default langauge file | ||
### Load a string from default language file | ||
@@ -46,3 +44,3 @@ *gettext(msgid)* | ||
### Load a string from a specific langauge file | ||
### Load a string from a specific language file | ||
@@ -53,3 +51,3 @@ *dgettext(domain, msgid)* | ||
### Load a plural string from default langauge file | ||
### Load a plural string from default language file | ||
@@ -89,1 +87,5 @@ *ngettext(msgid, msgid_plural, count)* | ||
gt.dnpgettext("et", "menu items", "%d Recent File", "%d Recent Files", 3); | ||
## License | ||
MIT |
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
86
32262
618