mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-07-31 22:52:50 +00:00
Help: Display English docs for Russian locale
Change two lines if when (if) Russian docs are back
This commit is contained in:
parent
9950956654
commit
27c321de0d
@ -41,9 +41,9 @@ func initStuff(r *mux.Router) {
|
|||||||
func handlerHelp(w http.ResponseWriter, rq *http.Request) {
|
func handlerHelp(w http.ResponseWriter, rq *http.Request) {
|
||||||
lc := l18n.FromRequest(rq)
|
lc := l18n.FromRequest(rq)
|
||||||
articlePath := strings.TrimPrefix(strings.TrimPrefix(rq.URL.Path, "/help/"), "/help")
|
articlePath := strings.TrimPrefix(strings.TrimPrefix(rq.URL.Path, "/help/"), "/help")
|
||||||
lang := lc.Locale
|
lang := "en" // replace with lc.Locale once Russian docs are back
|
||||||
if articlePath == "" {
|
if articlePath == "" {
|
||||||
articlePath = lc.Locale
|
articlePath = "en" // replace with lc.Locale once Russian docs are back
|
||||||
} else {
|
} else {
|
||||||
var slashIndex = strings.Index(articlePath, "/")
|
var slashIndex = strings.Index(articlePath, "/")
|
||||||
if slashIndex == -1 {
|
if slashIndex == -1 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user