From a1500631c4b65960dd2eb85ca30b79be8347aa9b Mon Sep 17 00:00:00 2001
From: Marco <eddex@users.noreply.github.com>
Date: Sat, 10 Aug 2019 13:18:38 +0000
Subject: [PATCH] localization for form-contact shortcode (#185)

---
 i18n/nl.toml                         |   15 +++++
 i18n/en.toml                         |   15 +++++
 i18n/zh.toml                         |   15 +++++
 i18n/ru.toml                         |   15 +++++
 layouts/shortcodes/form-contact.html |   10 +-
 i18n/es.toml                         |   15 +++++
 i18n/fr.toml                         |   15 +++++
 i18n/pt.toml                         |   15 +++++
 i18n/de.toml                         |   15 +++++
 9 files changed, 125 insertions(+), 5 deletions(-)

diff --git a/i18n/de.toml b/i18n/de.toml
index 12d93bf..572c5e4 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Ähnliches"
+
+[yourName]
+other = "Dein Name"
+
+[emailAddress]
+other = "Email Adresse"
+
+[message]
+other = "Nachricht"
+
+[emailRequiredNote]
+other = "Eine Email Adresse wird benötigt."
+
+[send]
+other = "Senden"
diff --git a/i18n/en.toml b/i18n/en.toml
index 97100a4..e87dc92 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Related"
+
+[yourName]
+other = "Your Name"
+
+[emailAddress]
+other = "Email Address"
+
+[message]
+other = "Message"
+
+[emailRequiredNote]
+other = "An email address is required."
+
+[send]
+other = "Send"
diff --git a/i18n/es.toml b/i18n/es.toml
index a6c052c..67ce170 100644
--- a/i18n/es.toml
+++ b/i18n/es.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Relacionado"
+
+[yourName]
+other = "Tu nombre"
+
+[emailAddress]
+other = "Dirección de correo electrónico"
+
+[message]
+other = "Mensaje"
+
+[emailRequiredNote]
+other = "Se requiere una dirección de correo electrónico."
+
+[send]
+other = "Enviar"
diff --git a/i18n/fr.toml b/i18n/fr.toml
index 12c5c83..563ae5e 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Lié"
+
+[yourName]
+other = "Votre nom"
+
+[emailAddress]
+other = "Adresse e-mail"
+
+[message]
+other = "Message"
+
+[emailRequiredNote]
+other = "Une adresse e-mail est requise."
+
+[send]
+other = "Envoyer"
diff --git a/i18n/nl.toml b/i18n/nl.toml
index 4555d44..993998a 100644
--- a/i18n/nl.toml
+++ b/i18n/nl.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Gerelateerd"
+
+[yourName]
+other = "Uw naam"
+
+[emailAddress]
+other = "E-mail adres"
+
+[message]
+other = "Boodschap"
+
+[emailRequiredNote]
+other = "Een e-mailadres is vereist."
+
+[send]
+other = "Stuur"
diff --git a/i18n/pt.toml b/i18n/pt.toml
index de3a5ec..4883a9c 100644
--- a/i18n/pt.toml
+++ b/i18n/pt.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Relacionado"
+
+[yourName]
+other = "O teu nome"
+
+[emailAddress]
+other = "Endereço de e-mail"
+
+[message]
+other = "Mensagem"
+
+[emailRequiredNote]
+other = "É necessário um endereço de e-mail."
+
+[send]
+other = "Enviar"
diff --git a/i18n/ru.toml b/i18n/ru.toml
index cf07f12..25fd010 100644
--- a/i18n/ru.toml
+++ b/i18n/ru.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "Схожие"
+
+[yourName]
+other = "Ваше имя"
+
+[emailAddress]
+other = "Адрес электронной почты"
+
+[message]
+other = "Сообщение"
+
+[emailRequiredNote]
+other = "Требуется адрес электронной почты."
+
+[send]
+other = "трансмиссия"
diff --git a/i18n/zh.toml b/i18n/zh.toml
index 6d2dc4d..757af66 100644
--- a/i18n/zh.toml
+++ b/i18n/zh.toml
@@ -15,3 +15,18 @@
 
 [related]
 other = "相關內容"
+
+[yourName]
+other = "你的名字"
+
+[emailAddress]
+other = "电邮地址"
+
+[message]
+other = "信息"
+
+[emailRequiredNote]
+other = "需要电子邮件地址。"
+
+[send]
+other = "发送"
diff --git a/layouts/shortcodes/form-contact.html b/layouts/shortcodes/form-contact.html
index e2ceb6b..72a88f5 100644
--- a/layouts/shortcodes/form-contact.html
+++ b/layouts/shortcodes/form-contact.html
@@ -3,18 +3,18 @@
 
 <form class="black-80 sans-serif" accept-charset="UTF-8" action="{{ .Get "action" }}" method="POST" role="form">
 
-    <label class="{{ $.Scratch.Get "labelClasses" }}"  for="name">Your Name</label>
+    <label class="{{ $.Scratch.Get "labelClasses" }}"  for="name">{{ i18n "yourName" }}</label>
     <input type="text" id="name" name="name" class="{{ $.Scratch.Get "inputClasses" }}"  required placeholder=" "  aria-labelledby="name"/>
 
-    <label class="{{ $.Scratch.Get "labelClasses" }}" for="email">Email Address</label>
+    <label class="{{ $.Scratch.Get "labelClasses" }}" for="email">{{ i18n "emailAddress" }}</label>
     <input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}"  required placeholder=" "  aria-labelledby="email"/>
     <div class="requirements f6 gray glow i ph3 overflow-hidden">
-      An email address is required.
+      {{ i18n "emailRequiredNote" }}
     </div>
 
-    <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">Message</label>
+    <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">{{ i18n "message" }}</label>
     <textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea>
 
-    <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-blck bg-animate bg-black" type="submit" value="Send" />
+    <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-blck bg-animate bg-black" type="submit" value="{{ i18n "send" }}" />
 
 </form>

--
Gitblit v1.10.0