diff options
| author | nytpu <alex@nytpu.com> | 2021-05-11 12:34:58 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-05-11 12:34:58 -0600 |
| commit | f48337d5e7d8274eae2b7f1a438687a1ed2c0fd0 (patch) | |
| tree | 40167b2ed59dd6b2a3bffd8b6fed83127bd259f0 /core/entries.go | |
| parent | c072138b265eb3b7aa862aa987bca009ab722413 (diff) | |
translate subscriptions.gmi
Diffstat (limited to 'core/entries.go')
| -rw-r--r-- | core/entries.go | 20 |
1 files changed, 5 insertions, 15 deletions
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) |
