Start adding translation support for admin

This commit is contained in:
Harvey Tindall
2021-01-15 13:48:18 +00:00
committed by Harvey Tindall
parent a102199d5a
commit 4ac62a107c
7 changed files with 229 additions and 131 deletions
+1
View File
@@ -514,6 +514,7 @@ func start(asDaemon, firstCall bool) {
}
}
app.storage.lang.FormPath = filepath.Join(app.localPath, "lang", "form")
app.storage.lang.AdminPath = filepath.Join(app.localPath, "lang", "admin")
err = app.storage.loadLang()
if err != nil {
app.info.Fatalf("Failed to load language files: %+v\n", err)