Archived
1
0
This commit is contained in:
Jeff Becker 2017-10-17 08:42:53 -04:00
parent 53ba50541f
commit 1f24f03cf5
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
3 changed files with 12 additions and 6 deletions

View File

@ -411,10 +411,16 @@ func renderPostForm(prefix, board, op_msg_id string, files, captcha bool, i18n *
if op_msg_id != "" { if op_msg_id != "" {
button = "Reply" button = "Reply"
if i18n != nil { if i18n != nil {
button = i18n.Translate("postbutton-reply") b := i18n.Translate("postbutton_reply")
if b != "" {
button = b
}
} }
} else if i18n != nil { } else if i18n != nil {
button = i18n.Translate("postbutton-thread") b := i18n.Translate("postbutton_thread")
if b != "" {
button = b
}
} }
return template.renderTemplate("postform.mustache", map[string]interface{}{"post_url": url, "reference": op_msg_id, "button": button, "files": files, "prefix": prefix, "DisableCaptcha": !captcha}, i18n) return template.renderTemplate("postform.mustache", map[string]interface{}{"post_url": url, "reference": op_msg_id, "button": button, "files": files, "prefix": prefix, "DisableCaptcha": !captcha}, i18n)
} }

View File

@ -176,5 +176,5 @@ start_mining=Mine!
download_prompt=Download download_prompt=Download
postbutton-reply=Reply postbutton_reply=Reply
postbutton-thread=New Thread postbutton_thread=New Thread

View File

@ -180,8 +180,8 @@ board_title-overchan=のページ #
navbar-links-title=ページ navbar-links-title=ページ
navbar-link=検索 navbar-link=検索
data-subject-none=無し data-subject-none=無し
postbutton-reply=回答 postbutton_reply=回答
postbutton-thread=親スレ postbutton_thread=親スレ
excluded=# ポスト除外 excluded=# ポスト除外
data-name=名無し data-name=名無し
paginator-next= paginator-next=