Add pt-br i18n (#144)

* Add pt-br i18n

* Fix footer text for pt-br
This commit is contained in:
Luiz F. A. de Prá
2019-02-09 12:36:32 -02:00
committed by GitHub
parent 7528f5bf5e
commit 13c99afe10
16 changed files with 96 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
{{ define "title" }}
{{- if eq .Kind "taxonomy" -}}
{{- .Data.Singular | title -}}
{{- i18n .Data.Singular | title -}}
{{- print ": " -}}
{{- end -}}

View File

@@ -1,7 +1,7 @@
<section class="container centered">
<div class="error">
<h1>404</h1>
<h2>Page Not Found</h2>
<p>Sorry, this page does not exist.<br />You can head back to <a href="{{ .Site.BaseURL }}">homepage</a>.</p>
<h2>{{ i18n "page_not_found" }}</h2>
<p>{{ i18n "page_does_not_exist" }}<br />{{ i18n "head_back" .Site.BaseURL | safeHTML }}</p>
</div>
</section>

View File

@@ -6,7 +6,7 @@
{{ if not .Site.Params.hideCopyright }} © {{ now.Format "2006" }}{{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ end }}
{{ if .Site.Params.commit }}
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}

View File

@@ -1,7 +1,7 @@
<section class="container list">
<h1 class="title">
{{- if eq .Kind "taxonomy" -}}
{{- .Data.Singular | title -}}
{{- i18n .Data.Singular | title -}}
{{- print ": " -}}
{{- end -}}

View File

@@ -18,7 +18,7 @@
</span>
<span class="reading-time">
<i class="fas fa-clock"></i>
{{ i18n "readingTime" .ReadingTime }}
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories" . }}{{ end }}