Continue work on localization
parent
26182ca256
commit
bbc28621b5
@ -1 +1,2 @@
|
||||
/dist/*
|
||||
*.bak
|
||||
|
@ -1,45 +1,45 @@
|
||||
{{define "titlePrefix"}}About | {{end}}
|
||||
{{define "titlePrefix"}}{{ call .Translate `About` }} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
{{if ne .ServerAbout ``}}
|
||||
<h3>About this server</h3>
|
||||
<h3>{{ call .Translate `About this server` }}</h3>
|
||||
{{.ServerAbout}}
|
||||
{{end}}
|
||||
|
||||
{{if ne .ServerRules ``}}
|
||||
<h3>This server rules</h3>
|
||||
<h3>{{ call .Translate `This server rules` }}</h3>
|
||||
{{.ServerRules}}
|
||||
{{end}}
|
||||
|
||||
<h3>Limits</h3>
|
||||
<h3>{{ call .Translate `Limits` }}</h3>
|
||||
{{if ne .TitleMaxLen 0}}
|
||||
{{if gt .TitleMaxLen 0}}
|
||||
<p>Maximum length of the paste title: <code>{{.TitleMaxLen}}</code> symbols.<br/>
|
||||
<p>{{ call .Translate `Maximum length of the paste title:` }} <code>{{.TitleMaxLen}}</code> {{ call .Translate `symbols` }}.<br/>
|
||||
{{else}}
|
||||
<p>There is no limit to the size of the paste body.</br>
|
||||
<p>{{ call .Translate `There is no limit to the size of the paste title.` }}</br>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<p>Paste titles are disabled on this server.<br/>
|
||||
<p>{{ call .Translate `Paste titles are disabled on this server.` }}<br/>
|
||||
{{end}}
|
||||
{{if gt .BodyMaxLen 0}}
|
||||
Maximum length of the paste body: <code>{{.BodyMaxLen}}</code> symbols.</p>
|
||||
{{ call .Translate `Maximum length of the paste body:` }} <code>{{.BodyMaxLen}}</code> {{ call .Translate `symbols`}}.</p>
|
||||
{{else}}
|
||||
There is no limit to the size of the paste body.</p>
|
||||
{{ call .Translate `There is no limit to the size of the paste body.` }}</p>
|
||||
{{end}}
|
||||
|
||||
{{if or (ne .AdminName ``) (ne .AdminMail ``)}}
|
||||
<h3>Contact the administrator</h3>
|
||||
{{if ne .AdminName ``}}<p>Name: <code>{{.AdminName}}</code></p>{{end}}
|
||||
{{if ne .AdminMail ``}}<p>Email: <a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a></p>{{end}}
|
||||
<h3>{{ call .Translate `Contact the administrator` }}</h3>
|
||||
{{if ne .AdminName ``}}<p>{{ call .Translate `Name:` }} <code>{{.AdminName}}</code></p>{{end}}
|
||||
{{if ne .AdminMail ``}}<p>{{ call .Translate `Email:` }} <a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a></p>{{end}}
|
||||
{{end}}
|
||||
|
||||
<h3>What is Lenpaste?</h3>
|
||||
<p>This server uses Lenpaste version <code>{{.Version}}</code>. A little bit about it:</p>
|
||||
<h3>{{ call .Translate `What is Lenpaste?` }}</h3>
|
||||
<p>{{ call .Translate `This server uses Lenpaste version` }} <code>{{.Version}}</code>. {{ call .Translate `A little bit about it:` }}</p>
|
||||
<ul>
|
||||
<li>Lenpaste is open source software. All <a href="/about/source_code">source code</a> is available under the <a href="/about/license">AGPL 3</a> license.</li>
|
||||
<li>You don't need to register here.</li>
|
||||
<li>This site does not use cookies. Your privacy is respected here.</li>
|
||||
<li>Can work without JavaScript.</li>
|
||||
<li>Lenpaste has its own <a href="/docs/apiv1">API</a>.</li>
|
||||
<li>{{ call .Translate `Lenpaste is open source software. All` }} <a href="/about/source_code">{{ call .Translate `source code` }}</a> {{ call .Translate `is available under the` }} <a href="/about/license">AGPL 3</a> {{ call .Translate `license.` }}</li>
|
||||
<li>{{ call .Translate `You don't need to register here.` }}</li>
|
||||
<li>{{ call .Translate `This site does not use cookies to keep track of you.` }}</li>
|
||||
<li>{{ call .Translate `Can work without JavaScript.` }}</li>
|
||||
<li>{{ call .Translate `Lenpaste has its own` }} <a href="/docs/apiv1">API</a>.</li>
|
||||
</ul>
|
||||
{{end}}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{{define "titlePrefix"}}Docs | {{end}}
|
||||
{{define "titlePrefix"}}{{ call .Translate `Docs` }} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3>Documentation</h3>
|
||||
<h3>{{ call .Translate `Documentation` }}</h3>
|
||||
<ul>
|
||||
<li><a href="/docs/apiv1">API v1</li>
|
||||
<li><a href="/docs/api_libs">Libraries for working with API</li>
|
||||
<li><a href="/docs/api_libs">{{ call .Translate `Libraries for working with API` }}</li>
|
||||
</ul>
|
||||
{{end}}
|
||||
|
@ -1,43 +1,43 @@
|
||||
{{define "titlePrefix"}}Libraries for working with API | {{end}}
|
||||
{{define "titlePrefix"}}{{ call .Translate `Libraries for working with API` }} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3><a href="/docs">Documentation</a> / Libraries for working with API</h3>
|
||||
<h4 id="recommended">Recommended</h4>
|
||||
<h3><a href="/docs">{{ call .Translate `Documentation` }}</a> / {{ call .Translate `Libraries for working with API` }}</h3>
|
||||
<h4 id="recommended">{{ call .Translate `Recommended` }}</h4>
|
||||
<table>
|
||||
<th>Name</th>
|
||||
<th>Language</th>
|
||||
<th>API version</th>
|
||||
<th>Status</th>
|
||||
<th>License</th>
|
||||
<th>{{ call .Translate `Name` }}</th>
|
||||
<th>{{ call .Translate `Language` }}</th>
|
||||
<th>{{ call .Translate `API version` }}</th>
|
||||
<th>{{ call .Translate `Status` }}</th>
|
||||
<th>{{ call .Translate `License` }}</th>
|
||||
<tr>
|
||||
<td><a href="https://git.lcomrade.su/root/pasteapi.go" target="_blank">PasteAPI.go</a></td>
|
||||
<td>Go</td>
|
||||
<td>v1.0</td>
|
||||
<td>Official</td>
|
||||
<td>{{ call .Translate `Official`}}</td>
|
||||
<td>MIT</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4 id="out_of_date">Out of date</h4>
|
||||
<p>Updates for these libraries are no longer available. This means that they cannot be used with Lenpaste v1.0 and higher.</p>
|
||||
<h4 id="out_of_date">{{ call .Translate `Out of date` }}</h4>
|
||||
<p>{{ call .Translate `Updates for these libraries are no longer available. This means that they cannot be used with Lenpaste v1.0 and higher.` }}</p>
|
||||
<table>
|
||||
<th>Name</th>
|
||||
<th>Language</th>
|
||||
<th>API version</th>
|
||||
<th>Status</th>
|
||||
<th>License</th>
|
||||
<th>{{ call .Translate `Name` }}</th>
|
||||
<th>{{ call .Translate `Language` }}</th>
|
||||
<th>{{ call .Translate `API version` }}</th>
|
||||
<th>{{ call .Translate `Status` }}</th>
|
||||
<th>{{ call .Translate `License` }}</th>
|
||||
<tr>
|
||||
<td><a href="https://git.lcomrade.su/root/lenin" target="_blank">Lenin</a></td>
|
||||
<td>Go</td>
|
||||
<td>v0.2</td>
|
||||
<td>Official</td>
|
||||
<td>GPL 3.0 or later</td>
|
||||
<td>{{ call .Translate `Official` }}</td>
|
||||
<td>{{ call .Translate `GPL 3.0 or later` }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://github.com/rjdbcm/pylenin" target="_blank">PyLenin</a></td>
|
||||
<td>Python</td>
|
||||
<td>v0.1</td>
|
||||
<td>Unofficial</td>
|
||||
<td>GPL 3.0 or later</td>
|
||||
<td>{{ call .Translate `Unofficial` }}</td>
|
||||
<td>{{ call .Translate `GPL 3.0 or later` }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{end}}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{{define "titlePrefix"}}Embedded {{.ID}} | {{end}}
|
||||
{{define "titlePrefix"}}{{ call .Translate `Embedded` }} {{.ID}} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3><a href="/{{.ID}}">{{.ID}}</a> / Embedded</h3>
|
||||
<h3><a href="/{{.ID}}">{{.ID}}</a> / {{ call .Translate `Embedded` }}</h3>
|
||||
{{if or (.OneUse) (ne .DeleteTime 0)}}
|
||||
<p>You cannot embedded the paste if it is "burned" after reading or has an expiration date.</p>
|
||||
<p>{{ call .Translate `You cannot embedded the paste if it is "burned" after reading or has an expiration date.` }}`</p>
|
||||
{{else}}
|
||||
<p>Add the following code to your page:</p>
|
||||
<p>{{ call .Translate `Add the following code to your page:` }}</p>
|
||||
<pre><code><iframe src="{{.Protocol}}://{{.Host}}/emb/{{.ID}}" width="100%" height="100%" frameborder="0"></iframe></code></pre>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
@ -1,15 +1,15 @@
|
||||
{{define "titlePrefix"}}{{.Error}} | {{end}}
|
||||
{{define "titlePrefix"}}{{.Code}} {{ call .Translate .Error }} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3>Error {{.Code}}</h3>
|
||||
<p>{{.Error}}</p>
|
||||
<h3>{{ call .Translate `Error` }} {{.Code}}</h3>
|
||||
<p>{{ call .Translate .Error }}</p>
|
||||
|
||||
{{if and (ne .AdminName ``) (ne .AdminMail ``)}}
|
||||
<p>Administrator contacts: <code>{{.AdminName}} <<a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a>></code></p>
|
||||
<p>{{ call .Translate `Administrator contacts:` }} <code>{{.AdminName}} <<a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a>></code></p>
|
||||
{{else}}
|
||||
{{if ne .AdminName ``}}<p>Administrator contacts: <code>{{.AdminName}}</code></p>{{end}}
|
||||
{{if ne .AdminMail ``}}<p>Administrator contacts: <code><a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a></code></p>{{end}}
|
||||
{{if ne .AdminName ``}}<p>{{ call .Translate `Administrator contacts:` }} <code>{{.AdminName}}</code></p>{{end}}
|
||||
{{if ne .AdminMail ``}}<p>{{ call .Translate `Administrator contacts:` }} <code><a href="mailto:{{.AdminMail}}">{{.AdminMail}}</a></code></p>{{end}}
|
||||
{{end}}
|
||||
|
||||
<p><a href="/"><< Back to home page</a></p>
|
||||
<p><a href="/"><< {{ call .Translate `Back to home page` }}</a></p>
|
||||
{{end}}
|
||||
|
@ -1,15 +1,15 @@
|
||||
{{define "titlePrefix"}}{{.ID}} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3>Continue?</h3>
|
||||
<p>This paste can only be viewed once. After you do this, it will be deleted. Continue?</p>
|
||||
<h3>{{ call .Translate `Continue?` }}</h3>
|
||||
<p>{{ call .Translate `This paste can only be viewed once. After you do this, it will be deleted. Continue?` }}</p>
|
||||
<div class="button-block-right">
|
||||
<form action="/" method="get">
|
||||
<button type="submit" tabindex=1>Cancel</button>
|
||||
<button type="submit" tabindex=1>{{ call .Translate `Cancel` }}</button>
|
||||
</form>
|
||||
<form action="/{{.ID}}" method="post">
|
||||
<input type="hidden" name="oneUseContinue" value="true"></input>
|
||||
<button class="button-green" type="submit" tabindex=2>Continue</button>
|
||||
<button class="button-green" type="submit" tabindex=2>{{ call .Translate `Continue` }}</button>
|
||||
</form>
|
||||
</div>
|
||||
{{end}}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{{define "titlePrefix"}}Source code | {{end}}
|
||||
{{define "titlePrefix"}}{{ call .Translate `Source code` }} | {{end}}
|
||||
{{define "headAppend"}}{{end}}
|
||||
{{define "article"}}
|
||||
<h3><a href="/about">About</a> / Source code</h3>
|
||||
<p>Sorry, it is not yet possible to download the source code directly from the Lenpaste server.
|
||||
But you can download it at this link:
|
||||
<h3><a href="/about">{{ call .Translate `About` }}</a> / {{ call .Translate `Source code` }}</h3>
|
||||
<p>{{ call .Translate `Sorry, it is not yet possible to download the source code directly from the Lenpaste server. But you can download it at this link:` }}
|
||||
<br/>
|
||||
<a href="https://git.lcomrade.su/root/lenpaste" target="_blank">https://git.lcomrade.su/root/lenpaste</a></p>
|
||||
{{end}}
|
||||
|
Loading…
Reference in New Issue