From aa3ebf08838510dcd5d8bca82bd6d14854561cf9 Mon Sep 17 00:00:00 2001 From: teapot1de <121592812+ywh555hhh@users.noreply.github.com> Date: Sun, 29 Sep 2024 17:20:08 +0800 Subject: [PATCH] Update Chinese and English translations for viewAllEvent button --- i18n/cn.yaml | 4 ++-- i18n/en.yaml | 4 ++-- themes/meghna-hugo/layouts/partials/event.html | 10 ++++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/i18n/cn.yaml b/i18n/cn.yaml index 3fb1658..e6105c7 100644 --- a/i18n/cn.yaml +++ b/i18n/cn.yaml @@ -6,8 +6,8 @@ translation: 最新活动 - id: readMore translation: 阅读更多 -- id: viewAllPost - translation: 查看所有 +- id: viewAllevent + translation: 所有活动 - id: share translation: 分享 - id: aboutAuthor diff --git a/i18n/en.yaml b/i18n/en.yaml index ab60004..fb833b9 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -6,8 +6,8 @@ translation: Latest Event - id: readMore translation: Read more -- id: viewAllPost - translation: View All Post +- id: viewAllevent + translation: View All Events - id: share translation: Share - id: aboutAuthor diff --git a/themes/meghna-hugo/layouts/partials/event.html b/themes/meghna-hugo/layouts/partials/event.html index 6df63a8..541e0f1 100644 --- a/themes/meghna-hugo/layouts/partials/event.html +++ b/themes/meghna-hugo/layouts/partials/event.html @@ -5,16 +5,18 @@ {{" " | safeHTML}}

{{ with i18n "eventTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }} - {{ with i18n "eventTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}

+ {{ with i18n "eventTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}

{{" " | safeHTML}} {{ range first 2 (where site.RegularPages "Section" "==" "event")}} {{ .Render "article"}} {{ end }} - - - + + +
+ {{ i18n "viewAllevent" }} +