1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

form: substitute Jellyfin on success messages

fixes #177
This commit is contained in:
Harvey Tindall 2021-12-20 20:17:18 +00:00
parent d81679fbae
commit d8b1f03ac4
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -157,6 +157,11 @@ func (app *appContext) loadConfig() error {
substituteStrings = app.config.Section("jellyfin").Key("substitute_jellyfin_strings").MustString("")
if substituteStrings != "" {
v := app.config.Section("ui").Key("success_message")
v.SetValue(strings.ReplaceAll(v.String(), "Jellyfin", substituteStrings))
}
oldFormLang := app.config.Section("ui").Key("language").MustString("")
if oldFormLang != "" {
app.storage.lang.chosenFormLang = oldFormLang