aboutsummaryrefslogtreecommitdiff
path: root/src/gotext.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/gotext.go')
-rw-r--r--src/gotext.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gotext.go b/src/gotext.go
index 480a812..b92d339 100644
--- a/src/gotext.go
+++ b/src/gotext.go
@@ -51,7 +51,7 @@ var (
-type msgID struct{
+type msgIDT struct{
msgidPlural string
comment string
fname string
@@ -148,7 +148,7 @@ func constructValue(val interface{}) string {
func inspectNodeForTranslations(
args argsT,
- msgIDs map[string][]msgID,
+ msgIDs map[string][]msgIDT,
fset *token.FileSet,
f *ast.File,
n ast.Node,
@@ -217,7 +217,7 @@ func inspectNodeForTranslations(
msgidStr := formatI18nStr(i18nStr)
posCall := fset.Position(n.Pos())
- msgIDs[msgidStr] = append(msgIDs[msgidStr], msgID{
+ msgIDs[msgidStr] = append(msgIDs[msgidStr], msgIDT{
formatHint: formatHint,
msgidPlural: formatI18nStr(i18nStrPlural),
fname: posCall.Filename,
@@ -247,9 +247,9 @@ func formatI18nStr(s string) string {
return s
}
-func processFiles(args argsT) (map[string][]msgID, error) {
+func processFiles(args argsT) (map[string][]msgIDT, error) {
// go over the input files
- msgIDs := map[string][]msgID{}
+ msgIDs := map[string][]msgIDT{}
fset := token.NewFileSet()
for _, fname := range args.subArgs {
@@ -264,7 +264,7 @@ func processFiles(args argsT) (map[string][]msgID, error) {
func processSingleGoSource(
args argsT,
- msgIDs map[string][]msgID,
+ msgIDs map[string][]msgIDT,
fset *token.FileSet,
fname string,
) error {
@@ -300,7 +300,7 @@ func formatOutput(in string) string {
}
}
-func writePotFile(out io.Writer, msgIDs map[string][]msgID) {
+func writePotFile(out io.Writer, msgIDs map[string][]msgIDT) {
header := g.Heredoc(`
#, fuzzy
msgid ""