aboutsummaryrefslogtreecommitdiffhomepage
path: root/errors
diff options
context:
space:
mode:
Diffstat (limited to 'errors')
-rw-r--r--errors/errors.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/errors/errors.go b/errors/errors.go
index b3c5530..e6a979a 100644
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -22,8 +22,8 @@ func (l LocalizedError) Error() string {
}
// Localize returns the translated error message.
-func (l LocalizedError) Localize(translation *locale.Language) string {
- return translation.Get(l.message, l.args...)
+func (l LocalizedError) Localize(printer *locale.Printer) string {
+ return printer.Printf(l.message, l.args...)
}
// NewLocalizedError returns a new LocalizedError.