1
0

Completed description and keywords translation.

This commit is contained in:
Alexander Andreev 2024-09-17 03:11:10 +04:00
parent 76c274c2a2
commit 1d079772ff
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
7 changed files with 25 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import "git.arav.su/Arav/dwelling-home/pkg/servicestat"
import "git.arav.su/Arav/dwelling-home/pkg/util"
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" {
@aboutRu(services, r)
{{ return }}

View File

@ -13,7 +13,7 @@ import "git.arav.su/Arav/justguestbook"
import "git.arav.su/Arav/dwelling-home/pkg/util"
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">
<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") }/>

View File

@ -2,8 +2,10 @@ package web
import "net/http"
import "github.com/invopop/ctxi18n/i18n"
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">
<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>

View File

@ -15,6 +15,7 @@ en:
go-back: Back to a list
guestbook:
description: This is my guestbook. Welcome.
keywords: guestbook, personal
form:
name: Name (Anonymous if left blank)
website: Website (optional)
@ -29,10 +30,18 @@ en:
on: on
reply: Reply by
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:
description: Privacy statements for all of my services.
keywords: privacy statements collected data
mindflow:
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.
no-posts: Nothing? There must be some... Looks like database went down.
all: All

View File

@ -11,10 +11,14 @@ ru:
about: О...
guestbook: Гостевая
privacy: Приватность
index:
description: Домашняя страница Александра под ником Arav. Но ещё и многое другое здесь найдешь...
keywords: домашняя страница, персональный сайт, блог, сервисы, само-хостинг
article:
go-back: К списку
guestbook:
description: Моя гостевая. Добро пожаловать.
keywords: гостевая, гостевая книга
form:
name: Имя (Аноним если оставить пустым)
website: Веб-сайт (необязательно)
@ -29,10 +33,15 @@ ru:
on: " "
reply: Ответ
no-posts: Нет постов.
about:
description: Обо мне и моих серверах.
keywords: о себе, о серверах
privacy:
description: Заявление о приватности на моих сервисах.
keywords: заявление приватность собираемые данные
mindflow:
description: Новости по работе сайта и серверов, мои нахрен никому не упёршиеся мнения и мысли.
keywords: обновления, мысли, мнения, блог, дневник
text: Новости по работе сайтов и серверов, мои мысли и мнения, которые никому не упёрлись.
no-posts: Ничего? Как это?.. Видать, база накрылась.
all: Всё

View File

@ -10,7 +10,7 @@ import "git.arav.su/Arav/dwelling-home/pkg/mindflow"
import "git.arav.su/Arav/dwelling-home/pkg/util"
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>
<section>
<menu id="filter" class="hidden">

View File

@ -7,7 +7,7 @@ import "github.com/invopop/ctxi18n/i18n"
import "git.arav.su/Arav/dwelling-home/pkg/util"
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" {
<section id="privacy">
<h2>Заявление о приватности</h2>