Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-01 12:54:29 +0300
committerVincent Tam <sere@live.hk>2019-08-01 12:54:29 +0300
commit4f9a37b67f6cb70ff29844de2671f74d43868f72 (patch)
treefec45f50bd970c184cf66f8632943940f1d75cc1
parent8fe9cc29b9879365725acc1b86b64975763ecd8b (diff)
i18n framework with WRONG translation for "song"
-rw-r--r--assets/css/style.css3
-rw-r--r--i18n/br.yaml4
-rw-r--r--i18n/de.yaml4
-rw-r--r--i18n/en.yaml4
-rw-r--r--i18n/eo.yaml4
-rw-r--r--i18n/es.yaml4
-rw-r--r--i18n/fr.yaml4
-rw-r--r--i18n/it.yaml4
-rw-r--r--i18n/ja.yaml4
-rw-r--r--i18n/nb.yaml4
-rw-r--r--i18n/nl.yaml4
-rw-r--r--i18n/pl.yaml4
-rw-r--r--i18n/ru.yaml4
-rw-r--r--i18n/zh-CN.yaml4
-rw-r--r--i18n/zh-TW.yaml4
-rw-r--r--layouts/_default/single.html44
16 files changed, 78 insertions, 25 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 990ff76..c88c851 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -226,9 +226,6 @@ img {
background: #f2f2f2;
text-align: center
}
-.nowlistening:before {
- content: "Ce billet fut écrit en écoutant: "
-}
.label {
display: inline;
padding: .2rem 1rem .2rem;
diff --git a/i18n/br.yaml b/i18n/br.yaml
index 1c00c03..59cd6ad 100644
--- a/i18n/br.yaml
+++ b/i18n/br.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Veja também"
+
+# Theme parameter "song"
+- id: song
+ translation: "Este post foi escrito ao ouvir:"
diff --git a/i18n/de.yaml b/i18n/de.yaml
index 5da9516..103453d 100644
--- a/i18n/de.yaml
+++ b/i18n/de.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Siehe auch"
+
+# Theme parameter "song"
+- id: song
+ translation: "Dieser Post wurde geschrieben, während wir:"
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 90a6f22..e247bd3 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "See also"
+
+# Theme parameter "song"
+- id: song
+ translation: "This post was written while listening to:"
diff --git a/i18n/eo.yaml b/i18n/eo.yaml
index 40817d6..e781f82 100644
--- a/i18n/eo.yaml
+++ b/i18n/eo.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Vidu ankaŭ"
+
+# Theme parameter "song"
+- id: song
+ translation: "Ĉi tiu afiŝo estis skribita dum aŭskultado:"
diff --git a/i18n/es.yaml b/i18n/es.yaml
index 1c3b855..5f07e5f 100644
--- a/i18n/es.yaml
+++ b/i18n/es.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Ver también"
+
+# Theme parameter "song"
+- id: song
+ translation: "Esta artículos fue escrita escuchando:"
diff --git a/i18n/fr.yaml b/i18n/fr.yaml
index becb26c..1e995f4 100644
--- a/i18n/fr.yaml
+++ b/i18n/fr.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Voir également"
+
+# Theme parameter "song"
+- id: song
+ translation: "Ce post a été écrit en écoutant :"
diff --git a/i18n/it.yaml b/i18n/it.yaml
index dac3133..fafeb4c 100644
--- a/i18n/it.yaml
+++ b/i18n/it.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Guarda anche"
+
+# Theme parameter "song"
+- id: song
+ translation: "Questo post è stato scritto ascoltando:"
diff --git a/i18n/ja.yaml b/i18n/ja.yaml
index 0a9084b..f433d41 100644
--- a/i18n/ja.yaml
+++ b/i18n/ja.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "も参照してください"
+
+# Theme parameter "song"
+- id: song
+ translation: "コのパシは音楽を聴きながら書かれた:"
diff --git a/i18n/nb.yaml b/i18n/nb.yaml
index f875f55..3a92968 100644
--- a/i18n/nb.yaml
+++ b/i18n/nb.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Se også"
+
+# Theme parameter "song"
+- id: song
+ translation: "Dette innlegget ble skrevet mens du hørte:"
diff --git a/i18n/nl.yaml b/i18n/nl.yaml
index aedd5da..4bc4ae9 100644
--- a/i18n/nl.yaml
+++ b/i18n/nl.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Zie ook"
+
+# Theme parameter "song"
+- id: song
+ translation: "Dit bericht is geschreven tijdens het luisteren naar:"
diff --git a/i18n/pl.yaml b/i18n/pl.yaml
index acad45e..cafa5c7 100644
--- a/i18n/pl.yaml
+++ b/i18n/pl.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Zobacz też"
+
+# Theme parameter "song"
+- id: song
+ translation: "Ten post został napisany podczas słuchania:"
diff --git a/i18n/ru.yaml b/i18n/ru.yaml
index 9125637..9d9c244 100644
--- a/i18n/ru.yaml
+++ b/i18n/ru.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "Смотрите также"
+
+# Theme parameter "song"
+- id: song
+ translation: "Этот пост был написан во время прослушивания:"
diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml
index 67453d0..366be17 100644
--- a/i18n/zh-CN.yaml
+++ b/i18n/zh-CN.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "也可以看看"
+
+# Theme parameter "song"
+- id: song
+ translation: "写这篇文章时,我在听:"
diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml
index f3819b6..6e050fb 100644
--- a/i18n/zh-TW.yaml
+++ b/i18n/zh-TW.yaml
@@ -96,3 +96,7 @@
# Related posts
- id: seeAlso
translation: "其他相關"
+
+# Theme parameter "song"
+- id: song
+ translation: "寫這篇文章時,我在聽:"
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1584dcf..3e81f1b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,17 +1,17 @@
{{- define "css" -}}
{{- with .Resources.Match "images/lightbox/*.*" -}}
- <link rel="stylesheet" href="{{ "css/baguetteBox.min.css" | relURL }}" />
+ <link rel='stylesheet' href='{{ "css/baguetteBox.min.css" | relURL }}' />
{{- end -}}
{{- with .Resources.Match "images/gallery/*.*" -}}
- <link rel="stylesheet" href="{{ "css/baguetteBox.min.css" | relURL }}" />
+ <link rel='stylesheet' href='{{ "css/baguetteBox.min.css" | relURL }}' />
{{- end }}
{{ $pygmcss := resources.Get "css/pygments.css" }}
{{ $pygments := $pygmcss | resources.Minify | resources.Fingerprint }}
- <link rel="stylesheet" href="{{ $pygments.RelPermalink }}" integrity="{{ $pygments.Data.integrity }}" />
+ <link rel='stylesheet' href='{{ $pygments.RelPermalink }}" integrity="{{ $pygments.Data.integrity }}' />
{{- if .Site.Params.staticman -}}
{{ $smcss := resources.Get "css/staticman.css" }}
{{ $staticman := $smcss | resources.Minify }}
- <link rel="stylesheet" href="{{ $staticman.RelPermalink }}" />
+ <link rel='stylesheet' href='{{ $staticman.RelPermalink }}' />
{{- end -}}
{{- end -}}
{{- define "title" -}}
@@ -33,62 +33,62 @@
<a class="categories" href="{{ "categories/" | relLangURL }}{{ . | urlize }}">
{{- . -}}
</a>
- {{- end -}}
- {{ range .Params.tags }}
+ {{- end -}}
+ {{ range .Params.tags }}
<a class="tags" href="{{ "tags/" | relLangURL }}{{ . | urlize }}">
{{- . -}}
</a>
{{- end -}}
</div>
</header>
- {{- with .Params.song -}}
- <div class="nowlistening">
- {{- . | markdownify -}}
+ {{ with .Params.song -}}
+ <div class='nowlistening'>
+ {{ i18n "song" }} {{ . | markdownify -}}
</div>
- {{- end -}}
- {{ if .TableOfContents }}
+ {{ end -}}
+ {{ if .TableOfContents -}}
<details>
<summary>{{ i18n "toc" }}</summary>
{{- $emtLiPtrn := "(?s)<ul>\\s<li>\\s<ul>(.*)</li>\\s</ul>" -}}
{{- $rplcEmtLi := "<ul>$1" -}}
{{ .TableOfContents | replaceRE $emtLiPtrn $rplcEmtLi | safeHTML }}
</details>
- {{- end -}}
- {{- .Content -}}
- {{- with .Resources.Match "images/gallery/*.*" -}}
+ {{ end }}
+ {{ .Content }}
+ {{ with .Resources.Match "images/gallery/*.*" -}}
{{ partial "gallery" . }}
- {{- end }}
+ {{ end }}
</article>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>{{ i18n "seeAlso" }}</h3>
<ul>
{{ range . }}
- <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ <li><a href='{{ .RelPermalink }}'>{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if .Site.Params.staticman }}
- <script src="{{ "js/jquery.min.js" | relURL }}"></script>
+ <script src='{{ "js/jquery.min.js" | relURL }}'></script>
{{ $smjs := resources.Get "js/staticman.js" | resources.ExecuteAsTemplate "js/staticman.js" .Site.Params.staticman }}
- <script src="{{ $smjs.RelPermalink }}"></script>
+ <script src='{{ $smjs.RelPermalink }}'></script>
{{ partial "staticman-comments.html" . }}
{{ end }}
{{ with .Site.Params.isso_server }}
- <script defer data-isso="{{ . }}" src="{{ . }}/js/embed.min.js" async></script>
- <section id="isso-thread"></section>
+ <script defer data-isso='{{ . }}' src='{{ . }}/js/embed.min.js' async></script>
+ <section id='isso-thread'></section>
{{ end }}
{{ end }}
{{- define "scripts" -}}
{{- with .Resources.Match "images/lightbox/*.*" -}}
- <script src="{{ "js/baguetteBox.min.js" | relURL }}"></script>
+ <script src='{{ "js/baguetteBox.min.js" | relURL }}'></script>
<script>baguetteBox.run('figure', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});</script>
{{- end -}}
{{- with .Resources.Match "images/gallery/*.*" -}}
- <script src="{{ "js/baguetteBox.min.js" | relURL }}"></script>
+ <script src='{{ "js/baguetteBox.min.js" | relURL }}'></script>
<script>baguetteBox.run('.gallery', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;