i18n: extract, translate strings to be translated
- Extracts stings to be translated. - Translates these strings in English and French. - Improves some comments in the templates. - Fixes #18. Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
282b6bcd85
commit
2e0cade651
|
@ -0,0 +1,19 @@
|
||||||
|
address = "Address"
|
||||||
|
contactsPriv = "Personal contacts"
|
||||||
|
contactsPro = "Professional contacts"
|
||||||
|
cv = "cv"
|
||||||
|
defaultImageAlt = "Grayish sheep portrait"
|
||||||
|
e-mail = "e-mail"
|
||||||
|
fingerprint = "Fingerprint"
|
||||||
|
lastCommit = "Last commit modifying this page"
|
||||||
|
mobile = "Mobile"
|
||||||
|
online = "Online"
|
||||||
|
permalink = "Permalink"
|
||||||
|
post-infos = "Post information"
|
||||||
|
pubkey = "Public key"
|
||||||
|
subscribe = "Subscribe"
|
||||||
|
subscribeToPublications = "Subscribe to posts"
|
||||||
|
tel = "Phone"
|
||||||
|
toSection = "from this section"
|
||||||
|
toWebsite = "from the website"
|
||||||
|
xmpp = "xmpp"
|
33
i18n/fr.toml
33
i18n/fr.toml
|
@ -1,14 +1,19 @@
|
||||||
[lastCommit]
|
address = "Adresse"
|
||||||
other = "Dernier commit modifiant cette page"
|
contactsPriv = "Contacts personnels"
|
||||||
|
contactsPro = "Contacts professionnels"
|
||||||
[post-infos]
|
cv = "cv"
|
||||||
other = "Informations sur le billet"
|
defaultImageAlt = "Portrait de mouton en nuances de gris"
|
||||||
|
e-mail = "e-mail"
|
||||||
[permalink]
|
fingerprint = "Empreinte"
|
||||||
other = "Permalien"
|
lastCommit = "Dernier commit modifiant cette page"
|
||||||
|
mobile = "Téléphone mobile"
|
||||||
[contactsPriv]
|
online = "En ligne"
|
||||||
other = "Contacts personnels"
|
permalink = "Permalien"
|
||||||
|
post-infos = "Informations sur le billet"
|
||||||
[contactsPro]
|
pubkey = "Clé publique"
|
||||||
other = "Contacts professionnels"
|
subscribe = "S'abonner"
|
||||||
|
subscribeToPublications = "S'abonner aux publications"
|
||||||
|
tel = "Téléphone"
|
||||||
|
toSection = "de cette section"
|
||||||
|
toWebsite = "du site"
|
||||||
|
xmpp = "xmpp"
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
<header>
|
<header>
|
||||||
<h2>{{.Title}}</h2>
|
<h2>{{.Title}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
|
||||||
|
_index.md -->
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
<article class="posts-list">
|
<article class="posts-list">
|
||||||
<!-- Ranges through content/posts/*.md -->
|
<!-- Ranges through content/posts/*.md in reverse order, then displays
|
||||||
|
the post title, the date and categories (list-footer template) -->
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
<article>
|
<article>
|
||||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||||
|
|
|
@ -2,12 +2,18 @@
|
||||||
<header>
|
<header>
|
||||||
<h2>{{.Title}}</h2>
|
<h2>{{.Title}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
|
||||||
|
_index.md -->
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
{{.Content }}
|
{{.Content }}
|
||||||
</header>
|
</header>
|
||||||
<article class="posts-list">
|
<article class="posts-list">
|
||||||
|
<!--
|
||||||
|
Ranges pages by the publish date, in reverse order, to display the
|
||||||
|
post titles of the section from most recent to older. It adds to
|
||||||
|
the title the date and categories (from lists-footer.html)
|
||||||
|
-->
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
<article>
|
<article>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 id="title">{{ .Title }}</h1>
|
<h1 id="title">{{ .Title }}</h1>
|
||||||
<!--
|
<!--
|
||||||
If it's a static page, then the post information are useless and
|
If it's a static page, then the post information is useless and
|
||||||
therefore not displayed. The test checks if the page IS NOT a static
|
therefore not displayed. The test checks if the page IS NOT a static
|
||||||
page.
|
page.
|
||||||
-->
|
-->
|
||||||
|
|
|
@ -2,12 +2,17 @@
|
||||||
<header>
|
<header>
|
||||||
<h2>{{.Title}}</h2>
|
<h2>{{.Title}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
|
||||||
|
_index.md -->
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
<article class="terms">
|
<article class="terms">
|
||||||
|
<!-- Ranges throught categories, alphabetically, then displays the posts
|
||||||
|
title with the number of item in the category -->
|
||||||
{{ range .Data.Terms.Alphabetical }}
|
{{ range .Data.Terms.Alphabetical }}
|
||||||
<article class="term">
|
<article class="term">
|
||||||
<p><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})</p>
|
<p>
|
||||||
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
|
||||||
|
</p>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -16,17 +16,20 @@
|
||||||
{{ if .IsPage -}}
|
{{ if .IsPage -}}
|
||||||
<a class="nav-item-link"
|
<a class="nav-item-link"
|
||||||
href="{{ .Site.BaseURL }}index.xml"
|
href="{{ .Site.BaseURL }}index.xml"
|
||||||
title="S'abonner aux publications du site">S'abonner
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
||||||
|
{{ i18n "subscribe" }}
|
||||||
</a>
|
</a>
|
||||||
{{ else if .IsHome -}}
|
{{ else if .IsHome -}}
|
||||||
<a class="nav-item-link"
|
<a class="nav-item-link"
|
||||||
href="{{ .Site.BaseURL }}index.xml"
|
href="{{ .Site.BaseURL }}index.xml"
|
||||||
title="S'abonner aux publications du site">S'abonner
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
||||||
|
{{ i18n "subscribe" }}
|
||||||
</a>
|
</a>
|
||||||
{{ else if .IsNode -}}
|
{{ else if .IsNode -}}
|
||||||
<a class="nav-item-link"
|
<a class="nav-item-link"
|
||||||
href="{{ .Permalink }}index.xml"
|
href="{{ .Permalink }}index.xml"
|
||||||
title="S'abonner aux publications de cette section">S'abonner
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toSection" }}">
|
||||||
|
{{ i18n "subscribe" }}
|
||||||
</a>
|
</a>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{{- else if .Site.Params.ImageDescription -}}
|
{{- else if .Site.Params.ImageDescription -}}
|
||||||
<meta property="og:image:alt" content="{{ .Site.Params.ImageDescription }}">
|
<meta property="og:image:alt" content="{{ .Site.Params.ImageDescription }}">
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<meta property="og:image:alt" content="Grayish sheep portrait">
|
<meta property="og:image:alt" content="{{ i18n "defaultImageAlt" }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta property="og:locale" content="{{ .Language.Lang }}">
|
<meta property="og:locale" content="{{ .Language.Lang }}">
|
||||||
{{- if .IsNode }}
|
{{- if .IsNode }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<h2 id="online">Online</h2>
|
<h2 id="online">{{ i18n "online" }}</h2>
|
||||||
<dl class="home-lists">
|
<dl class="home-lists">
|
||||||
{{ with .Site.Params.online.git }}
|
{{ with .Site.Params.online.git }}
|
||||||
<dt>Git</dt>
|
<dt>Git</dt>
|
||||||
|
|
|
@ -1,35 +1,43 @@
|
||||||
<h2 id="contactsPriv">{{ i18n "contactsPriv" }}</h2>
|
<h2 id="contactsPriv">{{ i18n "contactsPriv" }}</h2>
|
||||||
<dl class="home-lists">
|
<dl class="home-lists">
|
||||||
{{ with .Site.Params.contactsPriv.email }}
|
{{ with .Site.Params.contactsPriv.email }}
|
||||||
<dt>e-mail</dt>
|
<dt>{{ i18n "e-mail" }}</dt>
|
||||||
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dd>
|
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dd>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.contactsPriv.address }}
|
{{ with .Site.Params.contactsPriv.address }}
|
||||||
<dt>Adresse</dt>
|
<dt>{{ i18n "address" }}</dt>
|
||||||
<dd><span itemprop="address">{{ . }}</span></dd>
|
<dd><span itemprop="address">{{ . }}</span></dd>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.contactsPriv.phone }}
|
{{ with .Site.Params.contactsPriv.phone }}
|
||||||
<dt>Tél.</dt>
|
<dt>{{ i18n "tel" }}</dt>
|
||||||
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd>
|
<dd>
|
||||||
|
<a href="tel:{{ replace . " " ""}}">
|
||||||
|
<span itemprop="telephone">{{ . }}</span>
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPriv.mobile }}
|
{{ with .Site.Params.contactsPriv.mobile }}
|
||||||
<dt>Tél. mobile</dt>
|
<dt>{{ i18n "mobile" }}</dt>
|
||||||
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd>
|
<dd>
|
||||||
|
<a href="tel:{{ replace . " " ""}}">
|
||||||
|
<span itemprop="telephone">{{ . }}</span>
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPriv.publickey }}
|
{{ with .Site.Params.contactsPriv.publickey }}
|
||||||
<dt>Clé publique</dt>
|
<dt>{{ i18n "pubkey" }}</dt>
|
||||||
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.contactsPriv.fingerprint }}
|
{{ with .Site.Params.contactsPriv.fingerprint }}
|
||||||
<dt>Empreinte</dt>
|
<dt>{{ i18n "fingerprint" }}</dt>
|
||||||
<dd><code>{{ . }}</code></dd>
|
<dd><code>{{ . }}</code></dd>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.contactsPriv.xmpp }}
|
{{ with .Site.Params.contactsPriv.xmpp }}
|
||||||
<dt>XMPP/jabber</dt>
|
<dt class="smallcaps">{{ i18n "xmpp" }}</dt>
|
||||||
<dd>{{ . }}</dd>
|
<dd>{{ . }}</dd>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.contactsPriv.cv}}
|
{{ with .Site.Params.contactsPriv.cv}}
|
||||||
<dt>CV</dt>
|
<dt class="smallcaps">{{ i18n "cv" }}</dt>
|
||||||
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
@ -1,27 +1,35 @@
|
||||||
<h2 id="contactsPro">{{ i18n "contactsPro" }}</h2>
|
<h2 id="contactsPro">{{ i18n "contactsPro" }}</h2>
|
||||||
<dl class="home-lists">
|
<dl class="home-lists">
|
||||||
{{ with .Site.Params.contactsPro.email }}
|
{{ with .Site.Params.contactsPro.email }}
|
||||||
<dt>e-mail</dt>
|
<dt>{{ i18n "e-mail" }}</dt>
|
||||||
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dt>
|
<dd><a href="mailto:{{ . }}" itemprop="email">{{ . }}</a></dt>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPro.address }}
|
{{ with .Site.Params.contactsPro.address }}
|
||||||
<dt>Adresse</dt>
|
<dt>{{ i18n "address" }}</dt>
|
||||||
<dd><span itemprop="address">{{ . }}</span></dd>
|
<dd><span itemprop="address">{{ . }}</span></dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPro.mobile}}
|
{{ with .Site.Params.contactsPro.mobile}}
|
||||||
<dt>Mobile</dt>
|
<dt>{{ i18n "mobile" }}</dt>
|
||||||
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd>
|
<dd>
|
||||||
|
<a href="tel:{{ replace . " " ""}}">
|
||||||
|
<span itemprop="telephone">{{ . }}</span>
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPro.phone}}
|
{{ with .Site.Params.contactsPro.phone}}
|
||||||
<dt>Tél.</dt>
|
<dt>{{ i18n "tel" }}</dt>
|
||||||
<dd><a href="tel:{{ replace . " " ""}}"><span itemprop="telephone">{{ . }}</span></a></dd>
|
<dd>
|
||||||
|
<a href="tel:{{ replace . " " ""}}">
|
||||||
|
<span itemprop="telephone">{{ . }}</span>
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPro.publickey }}
|
{{ with .Site.Params.contactsPro.publickey }}
|
||||||
<dt>Clé publique</dt>
|
<dt>{{ i18n "pubkey" }}</dt>
|
||||||
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
<dd><a href="/{{ . }}">{{ . }}</a></dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ with .Site.Params.contactsPro.fingerprint}}
|
{{ with .Site.Params.contactsPro.fingerprint}}
|
||||||
<dt>Empreinte</dt>
|
<dt>{{ i18n "fingerprint" }}</dt>
|
||||||
<dd><code>{{ . }}</code></dd>
|
<dd><code>{{ . }}</code></dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
Loading…
Reference in New Issue