From 1d10750ce6d048b8fdf0921e78b812451292b470 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Aug 2025 20:50:24 +0200 Subject: Fix spelling of msgctxt --- cmd/exttmpl/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd/exttmpl/main.go') diff --git a/cmd/exttmpl/main.go b/cmd/exttmpl/main.go index 043e493..d5d929b 100644 --- a/cmd/exttmpl/main.go +++ b/cmd/exttmpl/main.go @@ -22,7 +22,7 @@ type config struct { type translation struct { msgid string msgidPlural string - msgctx string + msgctxt string domain string } @@ -122,8 +122,8 @@ msgstr "" fmt.Fprintln(outfile, "#:", x) } - if tl.msgctx != "" { - writeField(outfile, "msgctx", tl.msgctx) + if tl.msgctxt != "" { + writeField(outfile, "msgctxt", tl.msgctxt) } writeField(outfile, "msgid", tl.msgid) if tl.msgidPlural != "" { @@ -222,7 +222,7 @@ func processNode(node parse.Node) { } if cfg.context != -1 { if sn, ok := n.Args[cfg.context].(*parse.StringNode); ok { - tl.msgctx = sn.Text + tl.msgctxt = sn.Text } } -- cgit v1.2.3