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
+7
View File
@@ -67,6 +67,13 @@ type appContext struct {
port int
version string
quit chan os.Signal
lang Languages
}
type Languages struct {
langFiles []os.FileInfo // Language filenames
langOptions []string // Language names
chosenIndex int
}
func (app *appContext) loadHTML(router *gin.Engine) {