Browse Source

Use English app name if the other is empty

pull/68/head
Jochen Sprickerhof 5 years ago committed by Daniel Martí
parent
commit
1bd0f39050
  1. 4
      fdroid/index.go

4
fdroid/index.go

@ -59,6 +59,7 @@ type App struct {
}
type Localization struct {
Name string `json:"name"`
Summary string `json:"summary"`
Description string `json:"description"`
}
@ -274,6 +275,9 @@ func LoadIndexJSON(r io.Reader) (*Index, error) {
english, enOK = app.Localized["en-US"]
}
if app.Name == "" && enOK {
app.Name = english.Name
}
// TODO: why does the json index contain html escapes?
app.Name = html.UnescapeString(app.Name)

Loading…
Cancel
Save