Updated translation support
This commit is contained in:
parent
b1e8cd68cd
commit
d25565b6f8
114 changed files with 42095 additions and 1902 deletions
|
@ -1,17 +1,17 @@
|
|||
<div class="alert alert-warning alert-dismissible" role="alert" id="js-warning">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong>Warning!</strong> If JavaScript was not enabled then no confirmation message was sent
|
||||
<strong>{{#translate}}Warning!{{/translate}}</strong> {{#translate}}If JavaScript was not enabled then no confirmation message was sent{{/translate}}
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-warning').style.display = 'none';
|
||||
</script>
|
||||
|
||||
<h2>Almost finished.</h2>
|
||||
<h2>{{#translate}}Almost finished.{{/translate}}</h2>
|
||||
|
||||
<p>We need to confirm your email address. To complete the subscription process, please click the link in the email we just sent you.</p>
|
||||
<p>{{#translate}}We need to confirm your email address. To complete the subscription process, please click the link in the email we just sent you.{{/translate}}</p>
|
||||
|
||||
<p>
|
||||
<a class="btn btn-primary" href="{{homepage}}" role="button">
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> return to our website
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}return to our website{{/translate}}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Self hosted email newsletter app">
|
||||
<meta name="description" content="{{#translate}}Self hosted email newsletter app{{/translate}}">
|
||||
<meta name="author" content="Andris Reinman">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h2>Update your Email Address</h2>
|
||||
<h2>{{#translate}}Update your Email Address{{/translate}}</h2>
|
||||
|
||||
<form method="post" action="/subscription/{{lcid}}/manage-address">
|
||||
|
||||
|
@ -6,20 +6,20 @@
|
|||
<input type="hidden" name="cid" value="{{cid}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Existing Email Address</label>
|
||||
<label for="email">{{#translate}}Existing Email Address{{/translate}}</label>
|
||||
<input type="email" class="form-control" name="email" id="email" placeholder="" value="{{email}}" readonly>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email-new">New Email Address</label>
|
||||
<input type="email" class="form-control" name="email-new" id="email-new" placeholder="Your new email address" value="{{email}}">
|
||||
<label for="email-new">{{#translate}}New Email Address{{/translate}}</label>
|
||||
<input type="email" class="form-control" name="email-new" id="email-new" placeholder="{{#translate}}Your new email address{{/translate}}" value="{{email}}">
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<small>You will receive a confirmation request to your new email address that you need to accept before your email is actually changed</small>
|
||||
<small>{{#translate}}You will receive a confirmation request to your new email address that you need to accept before your email is actually changed{{/translate}}</small>
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update Email Address</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update Email Address{{/translate}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h2>Update your preferences</h2>
|
||||
<h2>{{#translate}}Update your preferences{{/translate}}</h2>
|
||||
|
||||
{{#if hasPubkey}}
|
||||
<form method="post" id="download-pubkey" action="/subscription/publickey">
|
||||
|
@ -14,20 +14,20 @@
|
|||
<input type="hidden" class="tz-detect" name="tz" id="tz" value="{{tz}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email Address</label>
|
||||
<label for="email">{{#translate}}Email Address{{/translate}}</label>
|
||||
<div class="input-group">
|
||||
<input type="email" class="form-control" name="email" id="email" placeholder="" value="{{email}}" readonly>
|
||||
<div class="input-group-addon"><a href="/subscription/{{lcid}}/manage-address/{{cid}}">want to change it?</a></div>
|
||||
<div class="input-group-addon"><a href="/subscription/{{lcid}}/manage-address/{{cid}}">{{#translate}}want to change it?{{/translate}}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="first-name">First Name</label>
|
||||
<label for="first-name">{{#translate}}First Name{{/translate}}</label>
|
||||
<input type="text" class="form-control" name="first-name" id="first-name" placeholder="" value="{{firstName}}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="last-name">Last Name</label>
|
||||
<label for="last-name">{{#translate}}Last Name{{/translate}}</label>
|
||||
<input type="text" class="form-control" name="last-name" id="last-name" placeholder="" value="{{lastName}}">
|
||||
</div>
|
||||
|
||||
|
@ -58,11 +58,11 @@
|
|||
{{#if typeGpg}}
|
||||
{{#if ../hasPubkey}}
|
||||
<div class="pull-right">
|
||||
<button type="submit" class="btn btn-link btn-xs" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Download signature verification key</button>
|
||||
<button type="submit" class="btn btn-link btn-xs" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> {{#translate}}Download signature verification key{{/translate}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="Begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">Insert your GPG public key here to encrypt messages sent to your address <em>(optional)</em></span>
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="{{#translate}}Begins with{{/translate}} '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">{{#translate}}Insert your GPG public key here to encrypt messages sent to your address{{/translate}} <em>({{#translate}}optional{{/translate}})</em></span>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -92,7 +92,7 @@
|
|||
{{#if typeDropdown}}
|
||||
<select name="{{key}}" class="form-control">
|
||||
<option value="">
|
||||
–– Select ––
|
||||
–– {{#translate}}Select{{/translate}} ––
|
||||
</option>
|
||||
{{#each options}}
|
||||
<option value="{{column}}" {{#if value}} selected {{/if}}>{{name}}</option>
|
||||
|
@ -124,6 +124,6 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update Profile</button> or <a href="/subscription/{{lcid}}/unsubscribe/{{cid}}">Unsubscribe</a>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update Profile{{/translate}}</button> or <a href="/subscription/{{lcid}}/unsubscribe/{{cid}}">{{#translate}}Unsubscribe{{/translate}}</a>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
<div class="alert alert-warning alert-dismissible" role="alert" id="js-warning">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong>Warning!</strong> JavaScript must be enabled in order for the subscription form to work
|
||||
<strong>{{#translate}}Warning!{{/translate}}</strong>
|
||||
{{#translate}}JavaScript must be enabled in order for the subscription form to work{{/translate}}
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-warning').style.display = 'none';
|
||||
|
@ -22,17 +23,17 @@
|
|||
<input type="hidden" name="sub" id="sub" value="">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email Address</label>
|
||||
<label for="email">{{#translate}}Email Address{{/translate}}</label>
|
||||
<input type="email" class="form-control" name="email" id="email" placeholder="" value="{{email}}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="first-name">First Name</label>
|
||||
<label for="first-name">{{#translate}}First Name{{/translate}}</label>
|
||||
<input type="text" class="form-control" name="first-name" id="first-name" placeholder="" value="{{firstName}}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="last-name">Last Name</label>
|
||||
<label for="last-name">{{#translate}}Last Name{{/translate}}</label>
|
||||
<input type="text" class="form-control" name="last-name" id="last-name" placeholder="" value="{{lastName}}">
|
||||
</div>
|
||||
|
||||
|
@ -63,11 +64,11 @@
|
|||
{{#if typeGpg}}
|
||||
{{#if ../hasPubkey}}
|
||||
<div class="pull-right">
|
||||
<button type="submit" class="btn btn-link btn-xs" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Download signature verification key</button>
|
||||
<button type="submit" class="btn btn-link btn-xs" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> {{#translate}}Download signature verification key{{/translate}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="Begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">Insert your GPG public key here to encrypt messages sent to your address <em>(optional)</em></span>
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="{{#translate}}Begins with{{/translate}} '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">{{#translate}}Insert your GPG public key here to encrypt messages sent to your address{{/translate}} <em>({{#translate}}optional{{/translate}})</em></span>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -97,7 +98,7 @@
|
|||
{{#if typeDropdown}}
|
||||
<select name="{{key}}" class="form-control">
|
||||
<option value="">
|
||||
–– Select ––
|
||||
–– {{#translate}}Select{{/translate}} ––
|
||||
</option>
|
||||
{{#each options}}
|
||||
<option value="{{column}}" {{#if value}} selected {{/if}}>{{name}}</option>
|
||||
|
@ -129,7 +130,7 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group" id="js-subscribe" style="display: none">
|
||||
<button type="submit" class="btn btn-primary">Subscribe to list</button>
|
||||
<button type="submit" class="btn btn-primary">{{#translate}}Subscribe to list{{/translate}}</button>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-subscribe').style.display = 'block';
|
||||
|
|
|
@ -1,15 +1,21 @@
|
|||
<h2>Subscription Confirmed</h2>
|
||||
<h2>{{#translate}}Subscription Confirmed{{/translate}}</h2>
|
||||
|
||||
<p>Your subscription to our list has been confirmed.</p>
|
||||
<p>
|
||||
{{#translate}}Your subscription to our list has been confirmed.{{/translate}}
|
||||
</p>
|
||||
|
||||
<p>Thank you for subscribing!</p>
|
||||
<p>
|
||||
{{#translate}}Thank you for subscribing!{{/translate}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="btn btn-primary" href="{{homepage}}" role="button">
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> continue to our website
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>
|
||||
{{#translate}}continue to our website{{/translate}}
|
||||
</a>
|
||||
or
|
||||
{{#translate}}or{{/translate}}
|
||||
<a class="btn btn-primary" href="{{preferences}}" role="button">
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> manage your preferences
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
{{#translate}}manage your preferences{{/translate}}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<h2>Unsubscribe Successful</h2>
|
||||
<h2>{{#translate}}Unsubscribe Successful{{/translate}}</h2>
|
||||
|
||||
<p>You have been removed from {{title}}.</p>
|
||||
<p>{{#translate}}You have been removed from:{{/translate}} {{title}}.</p>
|
||||
|
||||
<p>
|
||||
<a class="btn btn-primary" href="{{homepage}}" role="button">
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> return to our website
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}return to our website{{/translate}}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h2>Unsubscribe</h2>
|
||||
<h2>{{#translate}}Unsubscribe{{/translate}}</h2>
|
||||
|
||||
<p>
|
||||
Enter your email address to unsubscribe from {{title}}
|
||||
{{#translate}}Enter your email address to unsubscribe from:{{/translate}} {{title}}
|
||||
</p>
|
||||
|
||||
<form method="post" id="unsubscribe-form" action="/subscription/{{lcid}}/unsubscribe">
|
||||
|
@ -11,12 +11,12 @@
|
|||
<input type="hidden" name="cid" value="{{cid}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email address</label>
|
||||
<label for="email">{{#translate}}Email address{{/translate}}</label>
|
||||
<input type="email" class="form-control" name="email" id="email" placeholder="" value="{{email}}" autofocus required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" id="unsubscribe-button" class="btn btn-primary">Unsubscribe</button>
|
||||
<button type="submit" id="unsubscribe-button" class="btn btn-primary">{{#translate}}Unsubscribe{{/translate}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
<h3>Profile Updated</h3>
|
||||
<h3>{{#translate}}Profile Updated{{/translate}}</h3>
|
||||
|
||||
<p>Your profile information has been updated.</p>
|
||||
<p>
|
||||
{{#translate}}Your profile information has been updated.{{/translate}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="btn btn-primary" href="{{homepage}}" role="button">
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> return to our website
|
||||
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>
|
||||
{{#translate}}return to our website{{/translate}}
|
||||
</a>
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue