Localize config page labels
This commit is contained in:
1 parent
b37427535c
commit
288e6e94ac
2 files changed
+153
-101
No files matched your search
@@ -51,11 +51,11 @@
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="editor" onclick="showConfigPanel('editor'); return false;">
|
||||
Editor
|
||||
{{ T "config.editor" }}
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="districts" onclick="showConfigPanel('districts'); return false;">
|
||||
Districts
|
||||
{{ T "config.districts" }}
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="objects" onclick="showConfigPanel('objects'); return false;">
|
||||
@@ -84,7 +84,7 @@ Districts
|
||||
<h1>{{ T "config.title" }}</h1>
|
||||
|
||||
<p class="muted">
|
||||
Current District:
|
||||
{{ T "config.current_district" }}:
|
||||
<span class="mono">{{ .Context.District.Name }}</span>
|
||||
/
|
||||
<span class="mono">{{ .Context.District.Title }}</span>
|
||||
@@ -194,7 +194,7 @@ English
|
||||
>
|
||||
<br>
|
||||
<button type="submit">
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -206,23 +206,23 @@ Save
|
||||
class="config-section config-panel"
|
||||
>
|
||||
|
||||
<h2>Districts</h2>
|
||||
<h2>{{ T "config.districts" }}</h2>
|
||||
|
||||
<p class="muted">
|
||||
Districts are selected from the request host. The domain may be a full host or a subdomain label.
|
||||
{{ T "config.district_help" }}
|
||||
</p>
|
||||
|
||||
<table class="recent-table">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Title</th>
|
||||
<th>Domain</th>
|
||||
<th>Enabled</th>
|
||||
<th>Created</th>
|
||||
<th>Actions</th>
|
||||
<th>{{ T "config.id" }}</th>
|
||||
<th>{{ T "config.name" }}</th>
|
||||
<th>{{ T "config.district_title" }}</th>
|
||||
<th>{{ T "config.domain" }}</th>
|
||||
<th>{{ T "config.enabled" }}</th>
|
||||
<th>{{ T "config.created" }}</th>
|
||||
<th>{{ T "config.actions" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -242,7 +242,7 @@ Districts are selected from the request host. The domain may be a full host or a
|
||||
id="district-delete-{{ .ID }}"
|
||||
method="post"
|
||||
action="/-/sys/config"
|
||||
onsubmit="return confirm('Delete this district?')"
|
||||
onsubmit="return confirm('{{ T "config.delete_district_confirm" }}')"
|
||||
></form>
|
||||
<input
|
||||
form="district-update-{{ .ID }}"
|
||||
@@ -307,7 +307,7 @@ Districts are selected from the request host. The domain may be a full host or a
|
||||
value="1"
|
||||
{{ if .Enabled }}checked{{ end }}
|
||||
>
|
||||
Enabled
|
||||
{{ T "config.enabled" }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
@@ -320,13 +320,13 @@ Enabled
|
||||
form="district-update-{{ .ID }}"
|
||||
type="submit"
|
||||
>
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
<button
|
||||
form="district-delete-{{ .ID }}"
|
||||
type="submit"
|
||||
>
|
||||
Delete
|
||||
{{ T "config.delete" }}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -337,7 +337,7 @@ Delete
|
||||
|
||||
</table>
|
||||
|
||||
<h3>Create District</h3>
|
||||
<h3>{{ T "config.create_district" }}</h3>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
@@ -351,7 +351,7 @@ Delete
|
||||
>
|
||||
|
||||
<label>
|
||||
Name
|
||||
{{ T "config.name" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_name"
|
||||
@@ -363,7 +363,7 @@ Name
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Title
|
||||
{{ T "config.district_title" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_title"
|
||||
@@ -375,7 +375,7 @@ Title
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Domain
|
||||
{{ T "config.domain" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_domain"
|
||||
@@ -393,14 +393,14 @@ Domain
|
||||
value="1"
|
||||
checked
|
||||
>
|
||||
Enabled
|
||||
{{ T "config.enabled" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<button type="submit">
|
||||
Create
|
||||
{{ T "config.create" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -435,7 +435,7 @@ Create
|
||||
{{ if .Path }}
|
||||
<a href="{{ .Path }}">{{ .Path }}</a>
|
||||
{{ else }}
|
||||
<span class="muted">unlinked</span>
|
||||
<span class="muted">{{ T "config.unlinked" }}</span>
|
||||
{{ end }}
|
||||
</td>
|
||||
|
||||
@@ -459,10 +459,10 @@ Create
|
||||
|
||||
</table>
|
||||
|
||||
<h2>Zombie Objects</h2>
|
||||
<h2>{{ T "config.zombie_objects" }}</h2>
|
||||
|
||||
<p class="muted">
|
||||
Unlinked and empty objects older than the grace period.
|
||||
{{ T "config.zombie_help" }}
|
||||
</p>
|
||||
|
||||
<table class="recent-table">
|
||||
@@ -470,9 +470,9 @@ Unlinked and empty objects older than the grace period.
|
||||
<thead>
|
||||
<tr>
|
||||
<th>UUID</th>
|
||||
<th>Created</th>
|
||||
<th>Revisions</th>
|
||||
<th>Max Body</th>
|
||||
<th>{{ T "config.created" }}</th>
|
||||
<th>{{ T "config.revisions" }}</th>
|
||||
<th>{{ T "config.max_body" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -507,7 +507,7 @@ Unlinked and empty objects older than the grace period.
|
||||
<form
|
||||
method="post"
|
||||
action="/-/sys/config"
|
||||
onsubmit="return confirm('Purge zombie objects?')"
|
||||
onsubmit="return confirm('{{ T "config.purge_zombies_confirm" }}')"
|
||||
>
|
||||
|
||||
<input
|
||||
@@ -517,7 +517,7 @@ Unlinked and empty objects older than the grace period.
|
||||
>
|
||||
|
||||
<button type="submit">
|
||||
Purge Zombies
|
||||
{{ T "config.purge_zombies" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -587,7 +587,7 @@ Purge Zombies
|
||||
<input
|
||||
name="nav_label"
|
||||
type="text"
|
||||
placeholder="Label"
|
||||
placeholder="{{ T "config.nav_label" }}"
|
||||
>
|
||||
</td>
|
||||
|
||||
@@ -679,7 +679,7 @@ Purge Zombies
|
||||
<input
|
||||
name="nav_label"
|
||||
type="text"
|
||||
placeholder="Label"
|
||||
placeholder="{{ T "config.nav_label" }}"
|
||||
>
|
||||
</td>
|
||||
|
||||
@@ -714,7 +714,7 @@ Purge Zombies
|
||||
class="config-section config-panel"
|
||||
>
|
||||
|
||||
<h2>Editor</h2>
|
||||
<h2>{{ T "config.editor" }}</h2>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
@@ -728,12 +728,12 @@ Purge Zombies
|
||||
>
|
||||
|
||||
<label>
|
||||
Keymap
|
||||
{{ T "config.keymap" }}
|
||||
</label>
|
||||
|
||||
<select name="editor_keymap">
|
||||
<option value="default" {{ if eq .EditorKeymap "default" }}selected{{ end }}>
|
||||
Default
|
||||
{{ T "config.keymap_default" }}
|
||||
</option>
|
||||
<option value="vim" {{ if eq .EditorKeymap "vim" }}selected{{ end }}>
|
||||
Vim
|
||||
@@ -749,7 +749,7 @@ Vim
|
||||
name="editor_syntax_highlight"
|
||||
{{ if .EditorSyntax }}checked{{ end }}
|
||||
>
|
||||
Syntax highlighting
|
||||
{{ T "config.syntax_highlight" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
@@ -761,14 +761,14 @@ Syntax highlighting
|
||||
name="editor_autocomplete"
|
||||
{{ if .EditorAutocomplete }}checked{{ end }}
|
||||
>
|
||||
Autocomplete
|
||||
{{ T "config.autocomplete" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<button type="submit">
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user