improve translatability by removing some hardcoded texts

lektura
max.mehl 2017-03-23 19:36:39 +01:00
parent b9cb820553
commit f666707d85
3 changed files with 28 additions and 11 deletions

View File

@ -79,6 +79,12 @@ DefaultContentLanguage = "en"
[params.sign] [params.sign]
headline = "Sign our open letter!" headline = "Sign our open letter!"
description = "Show that you want to free publicly financed code by signing our open letter." description = "Show that you want to free publicly financed code by signing our open letter."
formName = "Name (required)"
formEmail = "Email (required)"
formCountry = "Country"
formZip = "ZIP Code"
formPermission1 = "I have read the privacy statement and would like to stay informed about the future of this campaign"
formSubmit = "Sign"
# Spread the word section # Spread the word section
[params.spread] [params.spread]
@ -103,6 +109,17 @@ DefaultContentLanguage = "en"
transparency = "Transparency" transparency = "Transparency"
license = "Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved." license = "Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved."
# Subpages
[params.subpage]
# Signatures Subpage
[params.subpage.signatures]
headline = "Signatures"
id = "ID"
name = "Name"
country = "Country"
zip = "ZIP Code"
# 404 Error Page # 404 Error Page
[params.error] [params.error]
headline = "Error 404 - Page not found" headline = "Error 404 - Page not found"

View File

@ -3,15 +3,15 @@
<div class="header-content"> <div class="header-content">
<div class="header-content-inner"> <div class="header-content-inner">
<div class="col-lg-8 col-lg-offset-2 text-center"> <div class="col-lg-8 col-lg-offset-2 text-center">
<h1>Signatures</h1> <h1>{{ .Site.Params.Subpage.Signatures.Headline }}</h1>
<hr /> <hr />
<table class="signatures"> <table class="signatures">
<tbody> <tbody>
<tr> <tr>
<th>ID</th> <th>{{ .Site.Params.Subpage.Signatures.id }}</th>
<th>Name</th> <th>{{ .Site.Params.Subpage.Signatures.name }}</th>
<th>Country</th> <th>{{ .Site.Params.Subpage.Signatures.country }}</th>
<th>Zip Code</th> <th>{{ .Site.Params.Subpage.Signatures.zip }}</th>
</tr> </tr>
{{ range $.Site.Data.signatures }} {{ range $.Site.Data.signatures }}
{{ range . }} {{ range . }}

View File

@ -9,25 +9,25 @@
<form action="/cgi/sign.php" method="get"> <form action="/cgi/sign.php" method="get">
<label class="sign-input form-na"> <label class="sign-input form-na">
<input name="name" placeholder="Name (required)" type="text" required /> <input name="name" placeholder="{{ .Site.Params.sign.formName }}" type="text" required />
</label> </label>
<label class="sign-input form-em"> <label class="sign-input form-em">
<input name="email" placeholder="Email (required)" type="email" required /> <input name="email" placeholder="{{ .Site.Params.sign.formEmail }}" type="email" required />
</label> </label>
<label class="sign-input form-cn"> <label class="sign-input form-cn">
<input name="country" placeholder="Country" type="text" /> <input name="country" placeholder="{{ .Site.Params.sign.formCountry }}" type="text" />
</label> </label>
<label class="sign-input form-zp"> <label class="sign-input form-zp">
<input name="zip" placeholder="Zip Code" type="text" /> <input name="zip" placeholder="{{ .Site.Params.sign.formZip }}" type="text" />
</label> </label>
<br /> <br />
<label class="form-pe"> <label class="form-pe">
<input name="permission" value="yes" type="checkbox" required /> I have read the privacy statement and would like to stay informed about the future of this campaign <input name="permission" value="yes" type="checkbox" required /> {{ .Site.Params.sign.formPermission1 }}
</label> </label>
<input id="honey" name="url" value="yes" type="submit" /> <!-- Honeypot for spam --> <input id="honey" name="url" value="yes" type="submit" /> <!-- Honeypot for spam -->
<br /> <br />
<button name="action" value="sign" type="submit">Sign</button> <button name="action" value="sign" type="submit">{{ .Site.Params.sign.formSubmit }}</button>
</form> </form>
</div> </div>
</div> </div>