From 8d3f758755db282cfc9d02998ec6c2629e3b0ec5 Mon Sep 17 00:00:00 2001 From: amreo Date: Tue, 4 Feb 2025 22:34:34 +0100 Subject: [PATCH] Aggiunta traduzione in italiano e inglese --- i18n/en.yaml | 2 ++ i18n/it.yaml | 2 ++ layouts/shortcodes/img.html | 10 +++++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 77de4f7..1b68c31 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -11,3 +11,5 @@ come_and_see_us: Come and see us where: Where more_tags: "...more" editions: Editions +source: Source +author: Author \ No newline at end of file diff --git a/i18n/it.yaml b/i18n/it.yaml index 46104af..e75651e 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -11,3 +11,5 @@ come_and_see_us: Vieni a trovarci where: Dove siamo more_tags: "...altro" editions: Edizioni +source: Fonte +author: Autore \ No newline at end of file diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 525457a..5a72726 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -2,22 +2,22 @@ {{ .Get {{ if strings.HasPrefix (.Get "source") "http" }} - 🛈 Fonte: {{ .Get "source" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} {{ else if ne (.Get "source") "" }} - 🛈 Fonte: {{ .Get "source" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} {{ end }} {{ if ne (.Get "author") "" }} - 🧑‍🎨 Autore: {{ .Get "author" }} + 🧑‍🎨 {{ T "author" }}: {{ .Get "author" }} {{ end }} {{ if ne (.Get "license-text") "" }} {{ if strings.HasPrefix (.Get "license-url") "http" }} - 📄 Licenza: {{ .Get "license-text" }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} {{ else }} - 📄 Licenza: {{ .Get "license-text" }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} {{ end }} {{ end }} \ No newline at end of file