Explorar o código

Merge branch 'master' into file-import-export

joeybloggs %!s(int64=8) %!d(string=hai) anos
pai
achega
8f1bfb25f9
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      examples/basic/main.go
  2. 2 2
      translator.go

+ 1 - 1
examples/basic/main.go

@@ -16,7 +16,7 @@ var universalTraslator *ut.UniversalTranslator
 
 func main() {
 
-	// NOTE: this example is omitting allot of error checking for brevity
+	// NOTE: this example is omitting a lot of error checking for brevity
 	e := en.New()
 	universalTraslator = ut.New(e, e, en_CA.New(), nl.New(), fr.New())
 

+ 2 - 2
translator.go

@@ -22,7 +22,7 @@ type Translator interface {
 	locales.Translator
 
 	// adds a normal translation for a particular language/locale
-	// {#} is the only replacement type accepted and are add infintium
+	// {#} is the only replacement type accepted and are ad infinitum
 	// eg. one: '{0} day left' other: '{0} days left'
 	Add(key interface{}, text string, override bool) error
 
@@ -93,7 +93,7 @@ func newTranslator(trans locales.Translator) Translator {
 }
 
 // Add adds a normal translation for a particular language/locale
-// {#} is the only replacement type accepted and are add infintium
+// {#} is the only replacement type accepted and are ad infinitum
 // eg. one: '{0} day left' other: '{0} days left'
 func (t *translator) Add(key interface{}, text string, override bool) error {