Completed description and keywords translation.
This commit is contained in:
parent
76c274c2a2
commit
1d079772ff
@ -8,7 +8,7 @@ import "git.arav.su/Arav/dwelling-home/pkg/servicestat"
|
|||||||
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
||||||
|
|
||||||
templ About(services *servicestat.ServiceList, r *http.Request) {
|
templ About(services *servicestat.ServiceList, r *http.Request) {
|
||||||
@base(i18n.T(ctx, "base.section.about"), "About me and my home servers.", "about, me, servcies", "/about", r, aboutHead()) {
|
@base(i18n.T(ctx, "base.section.about"), i18n.T(ctx, "about.description"), i18n.T(ctx, "about.keywords"), "/about", r, aboutHead()) {
|
||||||
if c := i18n.GetLocale(ctx).Code(); c == "ru" {
|
if c := i18n.GetLocale(ctx).Code(); c == "ru" {
|
||||||
@aboutRu(services, r)
|
@aboutRu(services, r)
|
||||||
{{ return }}
|
{{ return }}
|
||||||
|
@ -13,7 +13,7 @@ import "git.arav.su/Arav/justguestbook"
|
|||||||
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
||||||
|
|
||||||
templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCount, pageCur int64, r *http.Request) {
|
templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCount, pageCur int64, r *http.Request) {
|
||||||
@base(i18n.T(ctx, "base.section.guestbook"), i18n.T(ctx, "guestbook.description"), "guestbook, personal", "/guestbook", r, guestbookHead()) {
|
@base(i18n.T(ctx, "base.section.guestbook"), i18n.T(ctx, "guestbook.description"), i18n.T(ctx, "guestbook.keywords"), "/guestbook", r, guestbookHead()) {
|
||||||
<form id="new-post" action="/api/guestbook" method="POST">
|
<form id="new-post" action="/api/guestbook" method="POST">
|
||||||
<input type="text" name="name" maxlength="80" placeholder={ i18n.T(ctx, "guestbook.form.name") }/>
|
<input type="text" name="name" maxlength="80" placeholder={ i18n.T(ctx, "guestbook.form.name") }/>
|
||||||
<input type="text" name="website" maxlength="255" placeholder={ i18n.T(ctx, "guestbook.form.website") }/>
|
<input type="text" name="website" maxlength="255" placeholder={ i18n.T(ctx, "guestbook.form.website") }/>
|
||||||
|
@ -2,8 +2,10 @@ package web
|
|||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
|
import "github.com/invopop/ctxi18n/i18n"
|
||||||
|
|
||||||
templ Index(r *http.Request) {
|
templ Index(r *http.Request) {
|
||||||
@base("", "A homepage of a russian guy Alexander aka Arav. Not just homepage, but something more...", "homepage, personal, blog, services, self-hosting", "/", r, indexHead()) {
|
@base("", i18n.T(ctx, "index.description"), i18n.T(ctx, "index.keywords"), "/", r, indexHead()) {
|
||||||
<section id="services">
|
<section id="services">
|
||||||
<span>
|
<span>
|
||||||
<a href="https://arav.su">arav.su</a>.<a href="http://moq7aejnf4xk5k2bkaltli3ftkhusy2mbrd3pj23nrca343ku2mgk4yd.onion">onion</a>.<a href="http://[300:a98d:d6d0:8a08::f]">ygg</a>.<a href="http://arav.i2p">i2p</a><sup><a href="http://arav.i2p/?i2paddresshelper=5Kl-DiWbbk6wf7m0v6zBSNHYq3sXlnrWLIWVeGdpPbPyc9CBS~zrzDYpP43rv1fRiIkbVCD5hTEpY6joQGlk-dFkWWD6201qa6ecsDVQMaE3Q7UTYICd0VEBRoqDUSrvsM-P2y5oG4Z-77RmoGKpbcRgNuMVbQ7AGJNqVSGej-lSyscDWTIZT5dCT505lfRwprdD~emZqkwnn22X16Wpj-X4A4ifph4idrThGioz4UW6PrCpa-oebMCo217s0Zyl9VKaU-o9cx5eFUEwnshoUjqwh7VE-S45NDz854J08xldCATM3wwTRVXhc2NUypsJLKFKiV0z3EXN-ApCdxsV60C-eiXUTX5vYcHHH~imA79v8WKFybjnsyUBst5BBEPQIUifTceLUrTmQ9TUpaMV90EsD5SCshmCfOs8R5y2dK6EfQu8iyYAB5VFSH4M1CLiBZUsDTEFiOomn2JGMDnbPho8lMB8ss4SMuwZShb2LlGqLxJ38kRHlvC68VmJO7InBQAEAAcAAA==" title="Address helper">ah</a></sup>
|
<a href="https://arav.su">arav.su</a>.<a href="http://moq7aejnf4xk5k2bkaltli3ftkhusy2mbrd3pj23nrca343ku2mgk4yd.onion">onion</a>.<a href="http://[300:a98d:d6d0:8a08::f]">ygg</a>.<a href="http://arav.i2p">i2p</a><sup><a href="http://arav.i2p/?i2paddresshelper=5Kl-DiWbbk6wf7m0v6zBSNHYq3sXlnrWLIWVeGdpPbPyc9CBS~zrzDYpP43rv1fRiIkbVCD5hTEpY6joQGlk-dFkWWD6201qa6ecsDVQMaE3Q7UTYICd0VEBRoqDUSrvsM-P2y5oG4Z-77RmoGKpbcRgNuMVbQ7AGJNqVSGej-lSyscDWTIZT5dCT505lfRwprdD~emZqkwnn22X16Wpj-X4A4ifph4idrThGioz4UW6PrCpa-oebMCo217s0Zyl9VKaU-o9cx5eFUEwnshoUjqwh7VE-S45NDz854J08xldCATM3wwTRVXhc2NUypsJLKFKiV0z3EXN-ApCdxsV60C-eiXUTX5vYcHHH~imA79v8WKFybjnsyUBst5BBEPQIUifTceLUrTmQ9TUpaMV90EsD5SCshmCfOs8R5y2dK6EfQu8iyYAB5VFSH4M1CLiBZUsDTEFiOomn2JGMDnbPho8lMB8ss4SMuwZShb2LlGqLxJ38kRHlvC68VmJO7InBQAEAAcAAA==" title="Address helper">ah</a></sup>
|
||||||
|
@ -15,6 +15,7 @@ en:
|
|||||||
go-back: Back to a list
|
go-back: Back to a list
|
||||||
guestbook:
|
guestbook:
|
||||||
description: This is my guestbook. Welcome.
|
description: This is my guestbook. Welcome.
|
||||||
|
keywords: guestbook, personal
|
||||||
form:
|
form:
|
||||||
name: Name (Anonymous if left blank)
|
name: Name (Anonymous if left blank)
|
||||||
website: Website (optional)
|
website: Website (optional)
|
||||||
@ -29,10 +30,18 @@ en:
|
|||||||
on: on
|
on: on
|
||||||
reply: Reply by
|
reply: Reply by
|
||||||
no-posts: No posts.
|
no-posts: No posts.
|
||||||
|
index:
|
||||||
|
description: A homepage of a russian guy Alexander aka Arav. Not just homepage, but something more...
|
||||||
|
keywords: homepage, personal, blog, services, self-hosting
|
||||||
|
about:
|
||||||
|
description: About me and my home servers.
|
||||||
|
keywords: about, me, servcies
|
||||||
privacy:
|
privacy:
|
||||||
description: Privacy statements for all of my services.
|
description: Privacy statements for all of my services.
|
||||||
|
keywords: privacy statements collected data
|
||||||
mindflow:
|
mindflow:
|
||||||
description: Updates on my infrastructure, my very important opinions and thoughts.
|
description: Updates on my infrastructure, my very important opinions and thoughts.
|
||||||
|
keywords: updates, thoughts, opinions, blog, diary
|
||||||
text: Updates on websites and servers, my very important thoughts and opinions no one asked for.
|
text: Updates on websites and servers, my very important thoughts and opinions no one asked for.
|
||||||
no-posts: Nothing? There must be some... Looks like database went down.
|
no-posts: Nothing? There must be some... Looks like database went down.
|
||||||
all: All
|
all: All
|
||||||
|
@ -11,10 +11,14 @@ ru:
|
|||||||
about: О...
|
about: О...
|
||||||
guestbook: Гостевая
|
guestbook: Гостевая
|
||||||
privacy: Приватность
|
privacy: Приватность
|
||||||
|
index:
|
||||||
|
description: Домашняя страница Александра под ником Arav. Но ещё и многое другое здесь найдешь...
|
||||||
|
keywords: домашняя страница, персональный сайт, блог, сервисы, само-хостинг
|
||||||
article:
|
article:
|
||||||
go-back: К списку
|
go-back: К списку
|
||||||
guestbook:
|
guestbook:
|
||||||
description: Моя гостевая. Добро пожаловать.
|
description: Моя гостевая. Добро пожаловать.
|
||||||
|
keywords: гостевая, гостевая книга
|
||||||
form:
|
form:
|
||||||
name: Имя (Аноним если оставить пустым)
|
name: Имя (Аноним если оставить пустым)
|
||||||
website: Веб-сайт (необязательно)
|
website: Веб-сайт (необязательно)
|
||||||
@ -29,10 +33,15 @@ ru:
|
|||||||
on: " "
|
on: " "
|
||||||
reply: Ответ
|
reply: Ответ
|
||||||
no-posts: Нет постов.
|
no-posts: Нет постов.
|
||||||
|
about:
|
||||||
|
description: Обо мне и моих серверах.
|
||||||
|
keywords: о себе, о серверах
|
||||||
privacy:
|
privacy:
|
||||||
description: Заявление о приватности на моих сервисах.
|
description: Заявление о приватности на моих сервисах.
|
||||||
|
keywords: заявление приватность собираемые данные
|
||||||
mindflow:
|
mindflow:
|
||||||
description: Новости по работе сайта и серверов, мои нахрен никому не упёршиеся мнения и мысли.
|
description: Новости по работе сайта и серверов, мои нахрен никому не упёршиеся мнения и мысли.
|
||||||
|
keywords: обновления, мысли, мнения, блог, дневник
|
||||||
text: Новости по работе сайтов и серверов, мои мысли и мнения, которые никому не упёрлись.
|
text: Новости по работе сайтов и серверов, мои мысли и мнения, которые никому не упёрлись.
|
||||||
no-posts: Ничего? Как это?.. Видать, база накрылась.
|
no-posts: Ничего? Как это?.. Видать, база накрылась.
|
||||||
all: Всё
|
all: Всё
|
||||||
|
@ -10,7 +10,7 @@ import "git.arav.su/Arav/dwelling-home/pkg/mindflow"
|
|||||||
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
||||||
|
|
||||||
templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Request) {
|
templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Request) {
|
||||||
@base(i18n.T(ctx, "base.section.mindflow"), i18n.T(ctx, "base.mindflow.description"), "updates, thoughts, opinions, blog, diary", "/mindflow", r, mindflowHead()) {
|
@base(i18n.T(ctx, "base.section.mindflow"), i18n.T(ctx, "mindflow.description"), i18n.T(ctx, "mindflow.keywords"), "/mindflow", r, mindflowHead()) {
|
||||||
<p class="center">{ i18n.T(ctx, "mindflow.text") }</p>
|
<p class="center">{ i18n.T(ctx, "mindflow.text") }</p>
|
||||||
<section>
|
<section>
|
||||||
<menu id="filter" class="hidden">
|
<menu id="filter" class="hidden">
|
||||||
|
@ -7,7 +7,7 @@ import "github.com/invopop/ctxi18n/i18n"
|
|||||||
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
import "git.arav.su/Arav/dwelling-home/pkg/util"
|
||||||
|
|
||||||
templ Privacy(r *http.Request) {
|
templ Privacy(r *http.Request) {
|
||||||
@base(i18n.T(ctx, "base.section.privacy"), "Privacy statements for all of my services.", "privacy statements", "/privacy", r, nil) {
|
@base(i18n.T(ctx, "base.section.privacy"), i18n.T(ctx, "privacy.description"), i18n.T(ctx, "privacy.keywords"), "/privacy", r, nil) {
|
||||||
if c := i18n.GetLocale(ctx).Code(); c == "ru" {
|
if c := i18n.GetLocale(ctx).Code(); c == "ru" {
|
||||||
<section id="privacy">
|
<section id="privacy">
|
||||||
<h2>Заявление о приватности</h2>
|
<h2>Заявление о приватности</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user