From 7c94ff329acdfa9d41b6f96fce95fbd7ef029449 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 17 Oct 2017 08:34:52 -0400 Subject: [PATCH] enable postform button translation --- contrib/backends/srndv2/src/srnd/templates.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/templates.go b/contrib/backends/srndv2/src/srnd/templates.go index 104ad35..d4bbe65 100644 --- a/contrib/backends/srndv2/src/srnd/templates.go +++ b/contrib/backends/srndv2/src/srnd/templates.go @@ -410,6 +410,11 @@ func renderPostForm(prefix, board, op_msg_id string, files, captcha bool, i18n * button := "New Thread" if op_msg_id != "" { button = "Reply" + if i18n != nil { + button = i18n.Translate("postbutton-reply") + } + } else if i18n != nil { + button = i18n.Translate("postbutton-thread") } return template.renderTemplate("postform.mustache", map[string]interface{}{"post_url": url, "reference": op_msg_id, "button": button, "files": files, "prefix": prefix, "DisableCaptcha": !captcha}, i18n) }