diff options
Diffstat (limited to 'src/gotext.go')
-rw-r--r-- | src/gotext.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gotext.go b/src/gotext.go index 54e05c3..132a35b 100644 --- a/src/gotext.go +++ b/src/gotext.go @@ -154,7 +154,7 @@ func constructValue(val interface{}) string { right = right[1:len(right)] return left + right default: - panic(fmt.Sprintf("unknown type: %v", val)) + panic(fmt.Sprintf("unknown type: %v", val)) // FIXME } } @@ -364,7 +364,7 @@ msgstr "" func usage(argv0 string, w io.Writer) { fmt.Fprintf( w, - "Usage: %s\n", + Gettext("Usage: %s\n"), argv0, ) } @@ -379,17 +379,17 @@ func getopt(allArgs []string, w io.Writer) (argsT, int) { commentTag := fs.String( "A", "TRANSLATORS", - "place comment blocks starting with TAG and prceding keyword lines in output file", + Gettext("place comment blocks starting with TAG and prceding keyword lines in output file"), ) keyword := fs.String( "k", "gt.Gettext", - "look for WORD as the keyword for singular strings", + Gettext("look for WORD as the keyword for singular strings"), ) keywordPlural := fs.String( "K", "gt.NGettext", - "look for WORD as the keyword for plural strings", + Gettext("look for WORD as the keyword for plural strings"), ) if fs.Parse(argv) != nil { @@ -571,6 +571,7 @@ func Init(name string, localedir string) { func Main() { + Init(Name, LOCALEDIR) args, rc := getopt(os.Args, os.Stderr) if rc != 0 { os.Exit(0) |