Browse Source

localization for form-contact shortcode (#185)

tags/2.50
Marco 5 years ago
parent
commit
a1500631c4
9 changed files with 125 additions and 5 deletions
  1. 15
    0
      i18n/de.toml
  2. 15
    0
      i18n/en.toml
  3. 15
    0
      i18n/es.toml
  4. 15
    0
      i18n/fr.toml
  5. 15
    0
      i18n/nl.toml
  6. 15
    0
      i18n/pt.toml
  7. 15
    0
      i18n/ru.toml
  8. 15
    0
      i18n/zh.toml
  9. 5
    5
      layouts/shortcodes/form-contact.html

+ 15
- 0
i18n/de.toml View File

@@ -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
- 0
i18n/en.toml View File

@@ -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
- 0
i18n/es.toml View File

@@ -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
- 0
i18n/fr.toml View File

@@ -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
- 0
i18n/nl.toml View File

@@ -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
- 0
i18n/pt.toml View File

@@ -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
- 0
i18n/ru.toml View File

@@ -15,3 +15,18 @@ other = "Содержание {{ .Type }}"

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

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

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

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

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

[send]
other = "трансмиссия"

+ 15
- 0
i18n/zh.toml View File

@@ -15,3 +15,18 @@ other = "What's in this {{ .Type }}"

[related]
other = "相關內容"

[yourName]
other = "你的名字"

[emailAddress]
other = "电邮地址"

[message]
other = "信息"

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

[send]
other = "发送"

+ 5
- 5
layouts/shortcodes/form-contact.html View File

@@ -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>

Loading…
Cancel
Save