diff options
Diffstat (limited to 'src/gotext.go')
-rw-r--r-- | src/gotext.go | 8 |
1 files changed, 8 insertions, 0 deletions
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") { |