mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
i18n: added missing translations
* Note for term.html: I had to remove the "humanize" and "singularize" operators because this seems to work only for English. Exemple with French: Catégories was transforming to Catégory (accent was kept but "y" was added). So categories we're splited in 2 translations : one for singular, one for plurial.
This commit is contained in:
parent
4358a59d6f
commit
3423a92749
17
i18n/en.toml
17
i18n/en.toml
@ -29,4 +29,19 @@
|
|||||||
other = "Type something..."
|
other = "Type something..."
|
||||||
|
|
||||||
[searchResultTitle]
|
[searchResultTitle]
|
||||||
other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
|
other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
|
||||||
|
|
||||||
|
[searchResultPost]
|
||||||
|
other = "Post"
|
||||||
|
|
||||||
|
[categories]
|
||||||
|
other = "Categories"
|
||||||
|
|
||||||
|
[category]
|
||||||
|
other = "Category"
|
||||||
|
|
||||||
|
[footerBuiltWith]
|
||||||
|
other = "Built with"
|
||||||
|
|
||||||
|
[footerDesignedBy]
|
||||||
|
other = "designed by"
|
17
i18n/fr.toml
17
i18n/fr.toml
@ -29,4 +29,19 @@
|
|||||||
other = "Cherchez un article, une publication, etc."
|
other = "Cherchez un article, une publication, etc."
|
||||||
|
|
||||||
[searchResultTitle]
|
[searchResultTitle]
|
||||||
other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)"
|
other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)"
|
||||||
|
|
||||||
|
[searchResultPost]
|
||||||
|
other = "Publication"
|
||||||
|
|
||||||
|
[categories]
|
||||||
|
other = "Catégories"
|
||||||
|
|
||||||
|
[category]
|
||||||
|
other = "Catégorie"
|
||||||
|
|
||||||
|
[footerBuiltWith]
|
||||||
|
other = "Généré avec"
|
||||||
|
|
||||||
|
[footerDesignedBy]
|
||||||
|
other = "conçu par"
|
@ -2,7 +2,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
{{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
||||||
{{ if $categories }}
|
{{ if $categories }}
|
||||||
<h2 class="section-title">Categories</h2>
|
<h2 class="section-title">{{ T "categories" }}</h2>
|
||||||
<div class="category-list">
|
<div class="category-list">
|
||||||
<div class="article-list--tile">
|
<div class="article-list--tile">
|
||||||
{{ range $categories }}
|
{{ range $categories }}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h3 class="taxonomy-type section-title">{{ .Type | singularize | humanize }}</h3>
|
<h3 class="taxonomy-type section-title">{{ T "category" }}</h3>
|
||||||
<div class="taxonomy-card">
|
<div class="taxonomy-card">
|
||||||
<div class="taxonomy-details">
|
<div class="taxonomy-details">
|
||||||
<h3 class="taxonomy-count">{{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}</h3>
|
<h3 class="taxonomy-count">{{ len .Pages }} {{ T "searchResultPost" }}{{ if gt (len .Pages) 1 }}s{{ end }}</h3>
|
||||||
<h1 class="taxonomy-term">{{ .Title }}</h1>
|
<h1 class="taxonomy-term">{{ .Title }}</h1>
|
||||||
{{ with .Params.description }}
|
{{ with .Params.description }}
|
||||||
<h2 class="taxonomy-description">{{ . }}</h2>
|
<h2 class="taxonomy-description">{{ . }}</h2>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">© {{ now.Format "2006" }} {{ .Site.Title }}</section>
|
<section class="copyright">© {{ now.Format "2006" }} {{ .Site.Title }}</section>
|
||||||
<section class="powerby">
|
<section class="powerby">
|
||||||
Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br />
|
{{ T "footerBuiltWith" }} <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br />
|
||||||
Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="1.1.0">Stack</a></b> designed by
|
Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="1.1.0">Stack</a></b> {{ T "footerDesignedBy" }}
|
||||||
<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>
|
<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
Loading…
Reference in New Issue
Block a user