From ee86438a65583b21153c2e404a9b58f93f85645c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 14 May 2025 11:07:22 -0300 Subject: src/gotext.go: Add translatableErrorT --- src/gotext.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gotext.go') diff --git a/src/gotext.go b/src/gotext.go index 993e0f1..c236b4b 100644 --- a/src/gotext.go +++ b/src/gotext.go @@ -51,6 +51,10 @@ var ( +type translatableErrorT struct{ + err string +} + type msgIDT struct{ msgidPlural string comment string @@ -76,6 +80,10 @@ type envT struct{ +func (e *translatableErrorT) Error() string { + return Gettext(e.err) +} + func formatComment(com string) string { out := "" for _, rawline := range strings.Split(com, "\n") { -- cgit v1.2.3