diff --git a/core/entries.go b/core/entries.go index 4e5a341..df6325a 100644 --- a/core/entries.go +++ b/core/entries.go @@ -87,15 +87,10 @@ func agplCompilance() string { func (d *FullData) WriteSubs(dataPath string) error { path := filepath.Join(dataPath, "subscriptions.gmi.new") - rawPage := "# subscribed feeds\n\n" + rawPage := TranslateString("# %s\n\n", "files.subscriptions_subscribed_feeds", nil) rawPage += genDay() - rawPage += ` - -## Feeds - -Gemini, Atom, RSS, and JSON feeds from all over. - -` + rawPage += TranslateString("\n\n## %s\n\n", "files.subscriptions_feeds_title", nil) + rawPage += TranslateString("%s\n\n\n", "files.subscriptions_feeds_subtitle", nil) d.FeedsMu.RLock() for _, v := range d.Feeds { var link string @@ -108,13 +103,8 @@ Gemini, Atom, RSS, and JSON feeds from all over. } d.FeedsMu.RUnlock() - rawPage += ` - -## Pages - -Watching these pages for any changes that occur. - -` + rawPage += TranslateString("\n\n## %s\n\n", "files.subscriptions_pages_title", nil) + rawPage += TranslateString("%s\n\n\n", "files.subscriptions_pages_subtitle", nil) d.PagesMu.RLock() for _, v := range d.Pages { rawPage += fmt.Sprintf("=> %v", v.Link)