improve translatability by removing some hardcoded texts
parent
b9cb820553
commit
f666707d85
17
config.toml
17
config.toml
|
@ -79,6 +79,12 @@ DefaultContentLanguage = "en"
|
|||
[params.sign]
|
||||
headline = "Sign 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
|
||||
[params.spread]
|
||||
|
@ -103,6 +109,17 @@ DefaultContentLanguage = "en"
|
|||
transparency = "Transparency"
|
||||
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
|
||||
[params.error]
|
||||
headline = "Error 404 - Page not found"
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
<div class="header-content">
|
||||
<div class="header-content-inner">
|
||||
<div class="col-lg-8 col-lg-offset-2 text-center">
|
||||
<h1>Signatures</h1>
|
||||
<h1>{{ .Site.Params.Subpage.Signatures.Headline }}</h1>
|
||||
<hr />
|
||||
<table class="signatures">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Country</th>
|
||||
<th>Zip Code</th>
|
||||
<th>{{ .Site.Params.Subpage.Signatures.id }}</th>
|
||||
<th>{{ .Site.Params.Subpage.Signatures.name }}</th>
|
||||
<th>{{ .Site.Params.Subpage.Signatures.country }}</th>
|
||||
<th>{{ .Site.Params.Subpage.Signatures.zip }}</th>
|
||||
</tr>
|
||||
{{ range $.Site.Data.signatures }}
|
||||
{{ range . }}
|
||||
|
|
|
@ -9,25 +9,25 @@
|
|||
|
||||
<form action="/cgi/sign.php" method="get">
|
||||
<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 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 class="sign-input form-cn">
|
||||
<input name="country" placeholder="Country" type="text" />
|
||||
<input name="country" placeholder="{{ .Site.Params.sign.formCountry }}" type="text" />
|
||||
</label>
|
||||
<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>
|
||||
<br />
|
||||
<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>
|
||||
|
||||
<input id="honey" name="url" value="yes" type="submit" /> <!-- Honeypot for spam -->
|
||||
<br />
|
||||
<button name="action" value="sign" type="submit">Sign</button>
|
||||
<button name="action" value="sign" type="submit">{{ .Site.Params.sign.formSubmit }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue