summaryrefslogtreecommitdiffstats
path: root/api/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/api.go b/api/api.go
index d7bf70790..f537bbfdc 100644
--- a/api/api.go
+++ b/api/api.go
@@ -31,7 +31,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()
@@ -53,10 +53,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)
}
}