Turkish pages are Turkish to the end
The errors other packages give a page (store, catalog, mirror) are shown in its language; a percentage is written as the language writes it (%93 in Turkish); the footer's time in its date form; and a stale form is refused with a sentence rather than "bad request". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3a4488b41e
commit
f8d18efaef
36 files changed
+203
-46
No files matched your search
@@ -476,7 +476,7 @@ func (p *AccountPages) tenancyAction(s AccountAdmin,
|
||||
return p.adminOnly(func(w http.ResponseWriter, r *http.Request, admin store.User) {
|
||||
sess, _, _ := p.session(r)
|
||||
if !p.accounts.CheckCSRF(sess, r.FormValue("csrf")) {
|
||||
http.Error(w, "bad request", http.StatusBadRequest)
|
||||
badForm(w, r)
|
||||
return
|
||||
}
|
||||
l := langOf(r)
|
||||
@@ -524,7 +524,7 @@ func (p *AccountPages) adminAction(s AccountAdmin,
|
||||
return p.adminOnly(func(w http.ResponseWriter, r *http.Request, admin store.User) {
|
||||
sess, _, _ := p.session(r)
|
||||
if !p.accounts.CheckCSRF(sess, r.FormValue("csrf")) {
|
||||
http.Error(w, "bad request", http.StatusBadRequest)
|
||||
badForm(w, r)
|
||||
return
|
||||
}
|
||||
id := r.PathValue("id")
|
||||
|
||||
Reference in new issue
Block a user