From 36588ae653b92cd0c2d6100c5720d4176b5fcb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=B6hmke?= Date: Sat, 29 Feb 2020 11:42:35 +0100 Subject: [PATCH] xgotext: updated README.md --- cli/xgotext/README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cli/xgotext/README.md b/cli/xgotext/README.md index 3ec29dd..e488c39 100644 --- a/cli/xgotext/README.md +++ b/cli/xgotext/README.md @@ -1,6 +1,6 @@ # xgotext -CLI tool to extract translation strings from Go packages into .PO files. +CLI tool to extract translation strings from Go packages into .POT files. ## Installation @@ -11,7 +11,15 @@ go install github.com/leonelquinteros/gotext/cli/xgotext ## Usage ``` -xgotext -in /path/to/go/package -out /path/to/output/dir +Usage of xgotext: + -default string + Name of default domain (default "default") + -exclude string + Comma separated list of directories to exclude (default ".git") + -in string + input dir: /path/to/go/pkg + -out string + output dir: /path/to/i18n/files ``` ## Implementation @@ -27,7 +35,7 @@ Isn't able to parse calls to translation functions using parameters inside varia gotext.Get("Translate this") tr := "Translate this string" -// The following line will NOT be added to the .po file +// The following line will NOT be added to the .pot file gotext.Get(tr) ```