From fde1ab5b32b083bb1cf9f4abd3b463d15f1b93a6 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 8 Nov 2024 12:23:46 +0000 Subject: [PATCH] Initial translation support for text strings like headers and sentences --- themes/nluug/i18n/en.yaml | 6 ++++++ themes/nluug/layouts/index.html | 6 +++--- .../schemas/schema_ItemList_Person.html | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 themes/nluug/i18n/en.yaml create mode 100644 themes/nluug/layouts/partials/schemas/schema_ItemList_Person.html diff --git a/themes/nluug/i18n/en.yaml b/themes/nluug/i18n/en.yaml new file mode 100644 index 0000000..7004f6a --- /dev/null +++ b/themes/nluug/i18n/en.yaml @@ -0,0 +1,6 @@ +- id: header_latest_news + translation: "Latest news" +- id: header_upcoming_events + translation: "Upcoming events" +- id: sentence_more_events_planned + translation: "Besides these events by us, there are additional events planned in the near future" diff --git a/themes/nluug/layouts/index.html b/themes/nluug/layouts/index.html index 7c7bbcf..153be5c 100644 --- a/themes/nluug/layouts/index.html +++ b/themes/nluug/layouts/index.html @@ -4,7 +4,7 @@ {{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
-

Laatste nieuws

+

{{ i18n "header_latest_news" | default "Laatste nieuws" }}