aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-01 20:50:24 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-01 20:50:24 +0200
commit1d10750ce6d048b8fdf0921e78b812451292b470 (patch)
tree82164677eea156517b5a0c20ff41770b22cf9e4c
parent64f2be013d569ac3e94c06476f78aa79522f9786 (diff)
Fix spelling of msgctxt
-rw-r--r--cmd/exttmpl/main.go8
1 files changed, 4 insertions, 4 deletions
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
}
}