diff options
| author | Horus3 | 2015-03-23 23:17:51 +0100 |
|---|---|---|
| committer | Horus3 | 2015-03-23 23:17:51 +0100 |
| commit | 05e32cd6787f3f5a48192a5604c5bd3e8e3defc7 (patch) | |
| tree | 502697af748381e1cfd9cf0d0ea6ba324ad84921 /server.go | |
| parent | ac1ee887205d068b7b1c1df690f157dda506e419 (diff) | |
| download | freemail-05e32cd6787f3f5a48192a5604c5bd3e8e3defc7.tar.gz | |
German translation.
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -47,7 +47,9 @@ func CreateNewEntry(email, password string) error { return nil } -func ExecTemplate(template string, w http.ResponseWriter, flash Flash) error { +func ExecTemplate(template string, w http.ResponseWriter, r *http.Request, flash Flash) error { + l := GetLanguage(r) + template = template + l + ".html" index := mainTempl.Lookup(template) err := index.ExecuteTemplate(w, template, flash) |
