Implemented i18n on newsletter

This commit is contained in:
Hugo Martin 2020-08-04 21:01:10 +02:00 committed by Emruz Hossain
parent 1918fbc3fb
commit 38897e8d65
3 changed files with 30 additions and 6 deletions

View file

@ -15,4 +15,16 @@ other = "I am a Developer;I am a Devops;I love servers;I work on open-source pro
other = "Navigation" other = "Navigation"
[contact_me] [contact_me]
other = "Contact me:" other = "Contact me:"
[newsletter_text]
other = "Stay up to date with email notification"
[newsletter_input]
other = "Enter email"
[newsletter_warning]
other = "We'll never share your email with anyone else."
[submit]
other = "Submit"

View file

@ -15,4 +15,16 @@ other = "Je bidouille;Bref je code" # Split each quote with a ';'
other = "Naviguation" other = "Naviguation"
[contact_me] [contact_me]
other = "Contactez moi :" other = "Contactez moi :"
[newsletter_text]
other = "Restez à jour par e-mail"
[newsletter_input]
other = "Entrez une adresse e-mail"
[newsletter_warning]
other = "Nous ne partagerons jamais votre courriel avec quelqu'un d'autre."
[submit]
other = "Envoyer"

View file

@ -27,7 +27,7 @@
{{ if .Site.Params.newsletter.enable }} {{ if .Site.Params.newsletter.enable }}
<div class="col-md-4 col-sm-12"> <div class="col-md-4 col-sm-12">
<!-- <h5>Newsletter</h5> --> <!-- <h5>Newsletter</h5> -->
<p>Stay up to date with email notification</p> <p>{{ i18n "newsletter_text" }}</p>
<form> <form>
<div class="form-group"> <div class="form-group">
<input <input
@ -35,13 +35,13 @@
class="form-control" class="form-control"
id="exampleInputEmail1" id="exampleInputEmail1"
aria-describedby="emailHelp" aria-describedby="emailHelp"
placeholder="Enter email" placeholder="{{ i18n "newsletter_input" }}"
/> />
<small id="emailHelp" class="form-text text-muted" <small id="emailHelp" class="form-text text-muted"
>We'll never share your email with anyone else.</small >{{ i18n "newsletter_warning" }}</small
> >
</div> </div>
<button type="submit" class="btn btn-info">Submit</button> <button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
</form> </form>
</div> </div>
{{ end }} {{ end }}