func (te *TranslatorEncoding) GetTranslator() Translator {
	po := NewPo()
	po.domain = NewDomain()
	po.domain.Headers = te.Headers
	po.domain.Language = te.Language
	po.domain.PluralForms = te.PluralForms
	po.domain.nplurals = te.Nplurals
	po.domain.plural = te.Plural
	po.domain.translations = te.Translations
	po.domain.contexts = te.Contexts
	return po
}
GetTranslator is used to recover a Translator object after unmarshalling the TranslatorEncoding object.
Internally uses a Po object as it should be switchable with Mo objects without problem.
External Translator implementations should be able to serialize into a TranslatorEncoding object in order to
deserialize into a Po-compatible object.
package gotext
import (
	"errors"
	"io/ioutil"
	"os"
)
type Translator interface {
	ParseFile(f string)
	Parse(buf []byte)
	Get(str string, vars ...interface{}) string
	GetN(str, plural string, n int, vars ...interface{}) string
	GetC(str, ctx string, vars ...interface{}) string
	GetNC(str, plural string, n int, ctx string, vars ...interface{}) string
	MarshalBinary() ([]byte, error)
	UnmarshalBinary([]byte) error
	GetDomain() *Domain
}
type TranslatorEncoding struct {
	Headers HeaderMap
	Language string
	PluralForms string
	Nplurals int
	Plural   string
	Translations map[string]*Translation
	Contexts     map[string]map[string]*Translation
}