Skip to content

Commit

Permalink
localization for form-contact shortcode (theNewDynamic#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddex authored and Bud Parr committed Aug 10, 2019
1 parent d444d79 commit a150063
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 5 deletions.
15 changes: 15 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "Was ist in dieser {{ .Type }}"

[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"
15 changes: 15 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "What's in this {{ .Type }}"

[related]
other = "Related"

[yourName]
other = "Your Name"

[emailAddress]
other = "Email Address"

[message]
other = "Message"

[emailRequiredNote]
other = "An email address is required."

[send]
other = "Send"
15 changes: 15 additions & 0 deletions i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "Qué hay en este {{ .Type }}"

[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"
15 changes: 15 additions & 0 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "Ce qui est dans {{ .Type }}"

[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"
15 changes: 15 additions & 0 deletions i18n/nl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "Inhoud van deze {{ .Type }}"

[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"
15 changes: 15 additions & 0 deletions i18n/pt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "O que há neste {{ .Type }}"

[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"
15 changes: 15 additions & 0 deletions i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "Содержание {{ .Type }}"

[related]
other = "Схожие"

[yourName]
other = "Ваше имя"

[emailAddress]
other = "Адрес электронной почты"

[message]
other = "Сообщение"

[emailRequiredNote]
other = "Требуется адрес электронной почты."

[send]
other = "трансмиссия"
15 changes: 15 additions & 0 deletions i18n/zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ other = "What's in this {{ .Type }}"

[related]
other = "相關內容"

[yourName]
other = "你的名字"

[emailAddress]
other = "电邮地址"

[message]
other = "信息"

[emailRequiredNote]
other = "需要电子邮件地址。"

[send]
other = "发送"
10 changes: 5 additions & 5 deletions layouts/shortcodes/form-contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit a150063

Please sign in to comment.