From d4706e53ce96032649026823c39fff0145f13880 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 15 Sep 2024 16:15:57 +0400 Subject: [PATCH] Translation of a stuff page. --- web/locales/en/en.yaml | 12 ++++++++++++ web/locales/ru/ru.yaml | 12 ++++++++++++ web/stuff.templ | 18 +++++++++--------- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/web/locales/en/en.yaml b/web/locales/en/en.yaml index fbdbe8c..27f7c94 100644 --- a/web/locales/en/en.yaml +++ b/web/locales/en/en.yaml @@ -36,3 +36,15 @@ en: 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 + stuff: + description: Here I share my programs, scripts, articles, may be other stuff. + text: Here lies everything I've made that I'm willing to share. + article: + h: Articles + tabh-lu: Last Update + tabh-nm: Article + progs: Programs and scripts + music: + h: Music + text-1: There was a period in my life when I was playing with audio sequencers. I lost all project files and only 3 tracks survived in mp3 and they + text-2: can be found here \ No newline at end of file diff --git a/web/locales/ru/ru.yaml b/web/locales/ru/ru.yaml index fc0a23d..f5e136e 100644 --- a/web/locales/ru/ru.yaml +++ b/web/locales/ru/ru.yaml @@ -36,3 +36,15 @@ ru: text: Новости по работе сайтов и серверов, мои мысли и мнения, которые никому не упёрлись. no-posts: Ничего? Как это?.. Видать, база накрылась. all: Всё + stuff: + description: Здесь все программы, скрипты, статьи и прочее, чем хотел бы поделиться. + text: Здесь лежит всё, чем я хотел бы поделиться. + article: + h: Статьи + tabh-lu: Последнее обновление + tabh-nm: Статья + progs: Программы и скрипты + music: + h: Музыка + text-1: В моей жизни был период, когда я пытался в написание музыки в аудио секвенсорах. Я потерял проекты и сохранились лишь три mp3-шки, которые можно + text-2: взять здесь \ No newline at end of file diff --git a/web/stuff.templ b/web/stuff.templ index 73d3271..688805b 100644 --- a/web/stuff.templ +++ b/web/stuff.templ @@ -9,19 +9,19 @@ import "git.arav.su/Arav/dwelling-home/pkg/util" templ Stuff(r *http.Request) { {{ gitSite := util.GetServiceByHost(r.Host, util.ServiceGit) }} - @base(i18n.T(ctx, "base.section.stuff"), "Here I share my programs, scripts, articles, may be other stuff.", "articles, programs, personal projects, own music", "/stuff", r, nil) { -

Here lies everything I've made that I'm willing to share.

+ @base(i18n.T(ctx, "base.section.stuff"), i18n.T(ctx, "stuff.description"), "articles, programs, personal projects, own music", "/stuff", r, nil) { +

{ i18n.T(ctx, "stuff.text") }

-

Articles

+

{ i18n.T(ctx, "stuff.article.h") }

- - + + for _, entry := range Metadata {
Last UpdateArticle{ i18n.T(ctx, "stuff.article.tabh-lu") }{ i18n.T(ctx, "stuff.article.tabh-nm") }
- + { entry.Title } @@ -31,7 +31,7 @@ templ Stuff(r *http.Request) {
-

Programs and scripts

+

{ i18n.T(ctx, "stuff.progs") }

@@ -167,8 +167,8 @@ templ Stuff(r *http.Request) {
mccl
-

Music

-

There was a period in my life when I was playing with audio sequencers. I lost all project files and only 3 tracks survived in mp3 and they can be found here.

+

{ i18n.T(ctx, "stuff.music.h") }

+

{ i18n.T(ctx, "stuff.music.text-1") } { i18n.T(ctx, "stuff.music.text-2") }.

} }