Archived
1
0

enable postform button translation

This commit is contained in:
Jeff Becker 2017-10-17 08:34:52 -04:00
parent 2740229d6b
commit 7c94ff329a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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)
}