Pull more text into translation
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
27
i18n/en.toml
27
i18n/en.toml
@@ -77,3 +77,30 @@
|
|||||||
|
|
||||||
[ongoingSeries]
|
[ongoingSeries]
|
||||||
other = "Ongoing"
|
other = "Ongoing"
|
||||||
|
|
||||||
|
[nextInSeries]
|
||||||
|
other = "Next in Series"
|
||||||
|
|
||||||
|
[previousInSeries]
|
||||||
|
other = "Previous in Series"
|
||||||
|
|
||||||
|
[comingSoon]
|
||||||
|
other = "Coming soon!"
|
||||||
|
|
||||||
|
[startBergamot]
|
||||||
|
other = "Start Bergamot"
|
||||||
|
|
||||||
|
[closeBergamot]
|
||||||
|
other = "Close Bergamot"
|
||||||
|
|
||||||
|
[lineX]
|
||||||
|
other = ", line {{ . }}"
|
||||||
|
|
||||||
|
[aroundLineX]
|
||||||
|
other = ", around line {{ . }}"
|
||||||
|
|
||||||
|
[linesXThroughY]
|
||||||
|
other = ", lines {{ .from }} through {{ .to }}"
|
||||||
|
|
||||||
|
[entireFile]
|
||||||
|
other = ", entire file"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{{- $comment := "" -}}
|
{{- $comment := "" -}}
|
||||||
{{- if eq .from .to -}}
|
{{- if eq .from .to -}}
|
||||||
{{- $comment = printf ", line %d" .from -}}
|
{{- $comment = i18n "lineX" .to -}}
|
||||||
{{- else if eq .from 0 -}}
|
{{- else if eq .from 0 -}}
|
||||||
{{- $comment = printf ", around line %d" .to -}}
|
{{- $comment = i18n "aroundLineX" .to -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $comment = printf ", lines %d through %d" .from .to -}}
|
{{- $comment = i18n "linesXThroughY" . -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- return $comment -}}
|
{{- return $comment -}}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<a href="{{ .page.RelPermalink }}">
|
<a href="{{ .page.RelPermalink }}">
|
||||||
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
||||||
<div class="title-subtitle">
|
<div class="title-subtitle">
|
||||||
{{ title .direction }} in Series
|
{{ i18n (printf "%sInSeries" .direction) }}
|
||||||
<div class="title">{{ partial "nameinseries.html" (dict "page" .page) }}</div>
|
<div class="title">{{ partial "nameinseries.html" (dict "page" .page) }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{ if eq .direction "next" }}{{ partial "icon.html" "chevrons-right" }}{{ end }}
|
{{ if eq .direction "next" }}{{ partial "icon.html" "chevrons-right" }}{{ end }}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<div class="ongoing-placeholder">
|
<div class="ongoing-placeholder">
|
||||||
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
||||||
<div class="title-subtitle">
|
<div class="title-subtitle">
|
||||||
{{ title .direction }} in Series
|
{{ i18n (printf "%sInSeries" .direction) }}
|
||||||
<div class="title">Coming soon!</div>
|
<div class="title">{{ i18n "comingSoon" }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{ if eq .direction "next" }}{{ partial "icon.html" "chevrons-right" }}{{ end }}
|
{{ if eq .direction "next" }}{{ partial "icon.html" "chevrons-right" }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
<div class="bergamot-button-group">
|
<div class="bergamot-button-group">
|
||||||
{{ if or (eq (.Get "preset") "") (eq (.Get "preset") nil) }}
|
{{ if or (eq (.Get "preset") "") (eq (.Get "preset") nil) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<button class="bergamot-button bergamot-play" onclick='window.Bergamot.runPreset(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}", "{{ .Get "preset" }}")'>{{ partial "icon.html" "play" }}Start Bergamot</button>
|
<button class="bergamot-button bergamot-play" onclick='window.Bergamot.runPreset(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}", "{{ .Get "preset" }}")'>{{ partial "icon.html" "play" }}{{ i18n "startBergamot" }}</button>
|
||||||
<button class="bergamot-button bergamot-close bergamot-hidden" onclick='window.Bergamot.close(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}")'>{{ partial "icon.html" "x" }}Close Bergamot</button>
|
<button class="bergamot-button bergamot-close bergamot-hidden" onclick='window.Bergamot.close(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}")'>{{ partial "icon.html" "x" }}{{ i18n "closeBergamot" }}</button>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"url" $url.url
|
"url" $url.url
|
||||||
"basePath" $url.basePath
|
"basePath" $url.basePath
|
||||||
"path" (.Get 1)
|
"path" (.Get 1)
|
||||||
"comment" ", entire file"
|
"comment" (i18n "entireFile")
|
||||||
"code" (readFile (printf "code/%s" (.Get 1)))
|
"code" (readFile (printf "code/%s" (.Get 1)))
|
||||||
"language" (.Get 0)
|
"language" (.Get 0)
|
||||||
"opts" "linenos=table"
|
"opts" "linenos=table"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"url" $url.url
|
"url" $url.url
|
||||||
"basePath" $url.basePath
|
"basePath" $url.basePath
|
||||||
"path" (.Get 0)
|
"path" (.Get 0)
|
||||||
"comment" ", entire file"
|
"comment" (i18n "entireFile")
|
||||||
"content" (safeHTML (printf "<pre><code>%s</code></pre>" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))
|
"content" (safeHTML (printf "<pre><code>%s</code></pre>" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))
|
||||||
-}}
|
-}}
|
||||||
{{- partial "group.html" $groupconfig -}}
|
{{- partial "group.html" $groupconfig -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user