From e5a058f28980dab94522cb0ec783996d34436e5e Mon Sep 17 00:00:00 2001 From: Andrew Colin Kissa Date: Wed, 8 Jun 2022 13:49:57 +0200 Subject: [PATCH 1/2] Fix incorrect example --- mo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo.go b/mo.go index 5a7f8e8..fa824c4 100644 --- a/mo.go +++ b/mo.go @@ -36,7 +36,7 @@ Example: func main() { // Create po object - po := gotext.NewMoTranslator() + po := gotext.NewMo() // Parse .po file po.ParseFile("/path/to/po/file/translations.mo") From 1a80e8e8a04e9dc49c417b243cc5532af57fe931 Mon Sep 17 00:00:00 2001 From: Andrew Colin Kissa Date: Wed, 8 Jun 2022 13:54:15 +0200 Subject: [PATCH 2/2] Fix minor typos Fix comments to ensure correct docs generated --- mo.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mo.go b/mo.go index fa824c4..278fbd5 100644 --- a/mo.go +++ b/mo.go @@ -35,14 +35,14 @@ Example: ) func main() { - // Create po object - po := gotext.NewMo() + // 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")) } */