diff options
Diffstat (limited to 'api/api.go')
-rw-r--r-- | api/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/api.go b/api/api.go index 3b35a08fa..d0f41bcab 100644 --- a/api/api.go +++ b/api/api.go @@ -30,7 +30,7 @@ func NewServerTemplatePage(templateName string) *ServerTemplatePage { func (me *ServerTemplatePage) Render() string { var text bytes.Buffer if err := ServerTemplates.ExecuteTemplate(&text, me.TemplateName, me); err != nil { - l4g.Error("Error rendering template %v err=%v", me.TemplateName, err) + l4g.Error(utils.T("api.api.render.error"), me.TemplateName, err) } return text.String() @@ -52,10 +52,10 @@ func InitApi() { InitLicense(r) templatesDir := utils.FindDir("api/templates") - l4g.Debug("Parsing server templates at %v", templatesDir) + l4g.Debug(utils.T("api.api.init.parsing_templates.debug"), templatesDir) var err error if ServerTemplates, err = template.ParseGlob(templatesDir + "*.html"); err != nil { - l4g.Error("Failed to parse server templates %v", err) + l4g.Error(utils.T("api.api.init.parsing_templates.error"), err) } } |