add french, fix language selector in settings

note: custom language files can now be added in data/lang/form and will be
listed in settings.
This commit is contained in:
Harvey Tindall
2020-11-03 21:11:43 +00:00
parent 8e45ecb214
commit 493f10fa36
4 changed files with 78 additions and 6 deletions
-5
View File
@@ -1,8 +1,6 @@
package main
import (
"encoding/json"
"fmt"
"net/http"
"strings"
@@ -51,9 +49,6 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
},
"lang": app.storage.lang.Form["strings"],
})
l, _ := json.MarshalIndent(app.storage.lang.Form, "", " ")
fmt.Println(app.storage.lang.Form["strings"].(map[string]interface{})["validationStrings"].(string))
fmt.Printf("%s\n", l)
} else {
gc.HTML(404, "invalidCode.html", gin.H{
"bs5": app.config.Section("ui").Key("bs5").MustBool(false),