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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user