diff options
| author | Horus3 | 2015-05-17 03:32:03 +0200 |
|---|---|---|
| committer | Horus3 | 2015-05-17 03:32:03 +0200 |
| commit | cc207536d1f8618385d9807906818180cd596777 (patch) | |
| tree | 0093a6b12994c3d75b2be0abb6a43dae1eb9bf98 /utilities.go | |
| parent | feb97c32649dfaa7c98283423125283a53d5dd09 (diff) | |
| download | freemail-cc207536d1f8618385d9807906818180cd596777.tar.gz | |
Improve tests. Fix (major) typos. Include Piwik and it tracks the language.
Diffstat (limited to 'utilities.go')
| -rw-r--r-- | utilities.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities.go b/utilities.go index 602d4fe..f3b0ece 100644 --- a/utilities.go +++ b/utilities.go @@ -38,7 +38,7 @@ func GetLanguage(r *http.Request) string { } else { if c.Value != "" { if c.Value == "de" { - return "_" + c.Value + return c.Value } else { return "" } @@ -50,7 +50,7 @@ func GetLanguage(r *http.Request) string { lang := r.Header["Accept-Language"][0] l := strings.TrimSpace(strings.Split(lang, ",")[0]) if l == "de" { - return "_" + l + return l } return "" } |
