Move hard-coded strings to i18n files

Add translations in English and in Japanese
This commit is contained in:
Jack Taylor 2017-04-02 18:58:27 +09:00
commit 0f74f45531
9 changed files with 86 additions and 19 deletions

View file

@ -32,7 +32,7 @@
{{ end }}
{{ end }}
{{ if eq .Type "post" }}
<span class="post-meta">Posted on {{ .Date.Format (default "January 2, 2006" .Site.Params.dateFormat) }}</span>
<span class="post-meta">{{ default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format | i18n "postedOnDate" }}</span>
{{ end }}
</div>
</div>
@ -57,7 +57,7 @@
{{ end }}
{{ end }}
{{ if eq .Type "post" }}
<span class="post-meta">Posted on {{ .Date.Format (default "January 2, 2006" .Site.Params.dateFormat) }}</span>
<span class="post-meta">{{ default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format | i18n "postedOnDate" }}</span>
{{ end }}
</div>
</div>
@ -67,4 +67,4 @@
</header>
{{ else }}
<div class="intro-header"></div>
{{ end }}
{{ end }}