Merge pull request #65 from akissa/master

Minor documentation fixes
This commit is contained in:
Leonel Quinteros 2022-06-08 16:58:45 -03:00 committed by GitHub
commit 6998e37f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
mo.go
View file

@ -35,14 +35,14 @@ Example:
)
func main() {
// Create po object
po := gotext.NewMoTranslator()
// Create mo object
mo := gotext.NewMo()
// Parse .po file
po.ParseFile("/path/to/po/file/translations.mo")
// Parse .mo file
mo.ParseFile("/path/to/po/file/translations.mo")
// Get Translation
fmt.Println(po.Get("Translate this"))
fmt.Println(mo.Get("Translate this"))
}
*/