[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [check/master] User manual link was removed in 513656e
commit f9c3be237394ba3e96228a8950582a0dfdd594f2
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date: Mon Apr 8 13:10:26 2019 -0400
User manual link was removed in 513656e
---
utils.go | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/utils.go b/utils.go
index 072d414..024b263 100644
--- a/utils.go
+++ b/utils.go
@@ -62,29 +62,6 @@ func LikelyTBB(ua string) bool {
return TBBUserAgents.MatchString(ua) || OrfoxUserAgents.MatchString(ua)
}
-var HaveManual = map[string]bool{
- "ar": true,
- "cs": true,
- "de": true,
- "el": true,
- "en": true,
- "es": true,
- "fa": true,
- "fr": true,
- "hu": true,
- "it": true,
- "ja": true,
- "lv": true,
- "nb": true,
- "nl": true,
- "pl": true,
- "pt_BR": true,
- "ru": true,
- "sv": true,
- "tr": true,
- "zh_CN": true,
-}
-
func FuncMap(domain *gettext.Domain) template.FuncMap {
return template.FuncMap{
"UnEscaped": func(x string) interface{} {
@@ -105,12 +82,6 @@ func FuncMap(domain *gettext.Domain) template.FuncMap {
"And": func(a bool, b bool) bool {
return a && b
},
- "UserManual": func(lang string) string {
- if _, ok := HaveManual[lang]; !ok {
- lang = "en"
- }
- return lang
- },
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits