summaryrefslogtreecommitdiff
path: root/core/entries.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-11 12:34:58 -0600
committernytpu <alex@nytpu.com>2021-05-11 12:34:58 -0600
commitf48337d5e7d8274eae2b7f1a438687a1ed2c0fd0 (patch)
tree40167b2ed59dd6b2a3bffd8b6fed83127bd259f0 /core/entries.go
parentc072138b265eb3b7aa862aa987bca009ab722413 (diff)
translate subscriptions.gmi
Diffstat (limited to 'core/entries.go')
-rw-r--r--core/entries.go20
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)