diff options
| author | eltrac <hi@eltr.ac> | 2026-05-01 13:24:22 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-05-01 13:24:22 +0800 |
| commit | 65cb71ab5502a0f2c5649d81446a39caa618462c (patch) | |
| tree | 4ebf311d11936692bcf16dd35d90dfe9c9effc2d | |
| parent | 938810174bb7f2ebdfcdd9736d98df94e9ad5b44 (diff) | |
docs(i18n): translate interaction notice
| -rw-r--r-- | i18n/en.toml | 7 | ||||
| -rw-r--r-- | i18n/zh.toml | 7 | ||||
| -rw-r--r-- | layouts/_partials/posts/interaction-note.html | 15 |
3 files changed, 26 insertions, 3 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 144fde4..bd37da9 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -8,7 +8,7 @@ back2top = "I'll take you up!" emailMe = "If you prefer one-on-one communication, or just want to say hello, feel free to email me at" rss_comment_link = "Come and leave a comment" viewExternalSource = "View External Source" -ViewOnFediverse = "View on Fediverse" +fediverse = "Fediverse" [theme] auto = "Auto" @@ -90,3 +90,8 @@ neodb = "NeoDB" lucida = "Lucida" album = "ALBUM" openIn = "Open in {{ . }}" + +[interact] +note = "This website doesn’t have a comment section. You can discuss this page on %s, or %s. %s works, too. If you wrote a post on your site in reply to this page, %s to submit it." +sendEmail = "Email me" +goHere = "go here" diff --git a/i18n/zh.toml b/i18n/zh.toml index 122c18b..2329fc3 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -9,7 +9,7 @@ back2top = "我带你上去!" emailMe = "如果你偏好一对一的沟通,或者只是想打个招呼,欢迎发邮件到" rss_comment_link = "读完啦?来坐坐吧" viewExternalSource = "查看外部来源和完整互动" -ViewOnFediverse = "在联邦宇宙查看" +fediverse = "联邦宇宙" [theme] auto = "自动" @@ -92,3 +92,8 @@ neodb = "NeoDB" lucida = "Lucida" album = "专辑" openIn = "在 {{ . }} 中打开" + +[interact] +note = "「極客死亡計劃」没有评论区,你可以前往%s参与讨论,或者给我%s。本站也支持 %s 规范,如果你写了一篇文章回应此文,可以%s用表单提交。目前只有 Webmention 会显示在网站上。" +sendEmail = "发邮件" +goHere = "去这里" diff --git a/layouts/_partials/posts/interaction-note.html b/layouts/_partials/posts/interaction-note.html index 98593ec..e450b5c 100644 --- a/layouts/_partials/posts/interaction-note.html +++ b/layouts/_partials/posts/interaction-note.html @@ -1,6 +1,19 @@ <div id="interaction-note" class="my-4 px-5 py-2 rd-lg relative" style="background-color: oklch(from var(--block-background-color) l c h / calc(alpha - 0.5))"> - <p>「極客死亡計劃」没有评论区,你可以前往<a href="{{ or .Params.toot .Params.fedi }}">联邦宇宙</a>参与讨论,或者给我<a href="mailto:hi@eltr.ac?subject=回复:{{ .Title }}">发邮件</a>。本站也支持 <a href="/article/webmention">Webmention</a> 规范,如果你写了一篇文章回应此文,可以<a href="https://wm.geedea.pro/?target={{ .Permalink }}">去这里</a>用表单提交。目前只有 Webmention 会显示在网站上。</p> + <p> + {{ printf (T "interact.note") + (printf "<a href=\"%s\">%s</a>" + (or .Params.toot .Params.fedi "https://akk.eltr.ac/@eltrac") + (T "fediverse")) + (printf "<a href=\"mailto:hi@eltr.ac?subject=Re: %s\">%s</a>" + .Title + (T "interact.sendEmail")) + "<a href=\"https://indieweb.org/webmention\" target=\"_blank\">Webmention</a>" + (printf "<a href=\"https://wm.geedea.pro/?target=%s\">%s</a>" + .Permalink + (T "interact.goHere")) + | safeHTML }} + </p> <button onclick="document.getElementById('interaction-note').classList.add('hidden'); localStorage.setItem('geedeapro.closeInteractionNote', true)" class="absolute top-1 right-1 rotate-45 text-lg text-secondary">+</button> |
